github.com/sagernet/sing-box@v1.9.0-rc.20/include/dhcp_stub.go (about) 1 //go:build !with_dhcp 2 3 package include 4 5 import ( 6 "github.com/sagernet/sing-dns" 7 E "github.com/sagernet/sing/common/exceptions" 8 ) 9 10 func init() { 11 dns.RegisterTransport([]string{"dhcp"}, func(options dns.TransportOptions) (dns.Transport, error) { 12 return nil, E.New(`DHCP is not included in this build, rebuild with -tags with_dhcp`) 13 }) 14 }