github.com/toplink-cn/moby@v0.0.0-20240305205811-460b4aebdf81/libnetwork/default_gateway_windows.go (about) 1 package libnetwork 2 3 import ( 4 windriver "github.com/docker/docker/libnetwork/drivers/windows" 5 "github.com/docker/docker/libnetwork/options" 6 "github.com/docker/docker/libnetwork/types" 7 ) 8 9 const libnGWNetwork = "nat" 10 11 func getPlatformOption() EndpointOption { 12 epOption := options.Generic{ 13 windriver.DisableICC: true, 14 windriver.DisableDNS: true, 15 } 16 return EndpointOptionGeneric(epOption) 17 } 18 19 func (c *Controller) createGWNetwork() (*Network, error) { 20 return nil, types.NotImplementedErrorf("default gateway functionality is not implemented in windows") 21 }