github.com/Heebron/moby@v0.0.0-20221111184709-6eab4f55faf7/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  
    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  }