sing-box/include/dhcp_stub.go

15 lines
341 B
Go
Raw Permalink Normal View History

2023-02-08 08:28:52 +00:00
//go:build !with_dhcp
package include
import (
"github.com/sagernet/sing-dns"
E "github.com/sagernet/sing/common/exceptions"
)
func init() {
dns.RegisterTransport([]string{"dhcp"}, func(options dns.TransportOptions) (dns.Transport, error) {
2023-02-08 08:28:52 +00:00
return nil, E.New(`DHCP is not included in this build, rebuild with -tags with_dhcp`)
})
}