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