MCPcopy Create free account
hub / github.com/cloudfoundry/credhub-cli / OutboundServerIP

Function OutboundServerIP

commands/socks5_test.go:69–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67}
68
69func OutboundServerIP() net.IP {
70 conn, err := net.Dial("udp", "8.8.8.8:80")
71 if err != nil {
72 log.Fatal(err)
73 }
74 defer conn.Close()
75
76 localAddr := conn.LocalAddr().(*net.UDPAddr)
77
78 return localAddr.IP
79}
80
81func generateCertificate() (string, string) {
82 ca := &x509.Certificate{

Callers 2

OutboundServerAddressFunction · 0.85
generateCertificateFunction · 0.85

Calls 1

DialMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…