diff --git a/component/dialer/bind_others.go b/component/dialer/bind_others.go index d946ece..8348e1b 100755 --- a/component/dialer/bind_others.go +++ b/component/dialer/bind_others.go @@ -1,4 +1,4 @@ -// +build !linux,!darwin +//go:build !linux && !darwin package dialer diff --git a/component/dialer/fwmark_others.go b/component/dialer/fwmark_others.go index e5cdd14..b00b301 100644 --- a/component/dialer/fwmark_others.go +++ b/component/dialer/fwmark_others.go @@ -1,4 +1,4 @@ -// +build !linux +//go:build !linux package dialer diff --git a/core/device/tun/io_unix.go b/core/device/tun/io_unix.go index dfc083d..45c6fef 100644 --- a/core/device/tun/io_unix.go +++ b/core/device/tun/io_unix.go @@ -1,4 +1,4 @@ -// +build darwin freebsd openbsd +//go:build darwin || freebsd || openbsd package tun diff --git a/core/device/tun/tun_gvisor.go b/core/device/tun/tun_gvisor.go index 297b250..6a36c46 100755 --- a/core/device/tun/tun_gvisor.go +++ b/core/device/tun/tun_gvisor.go @@ -1,4 +1,4 @@ -// +build linux +//go:build linux package tun diff --git a/core/device/tun/tun_wireguard.go b/core/device/tun/tun_wireguard.go index 130bc0f..500ac6c 100755 --- a/core/device/tun/tun_wireguard.go +++ b/core/device/tun/tun_wireguard.go @@ -1,4 +1,4 @@ -// +build !linux +//go:build !linux package tun