MCPcopy Create free account
hub / github.com/SenseUnit/dumbproxy / AddMyIPAddress

Function AddMyIPAddress

jsext/addrutil.go:83–87  ·  view source on GitHub ↗
(vm *goja.Runtime)

Source from the content-addressed store, hash-verified

81}
82
83func AddMyIPAddress(vm *goja.Runtime) error {
84 return vm.GlobalObject().Set("myIpAddress", func(call goja.FunctionCall) goja.Value {
85 return vm.ToValue(myIPAddress().String())
86 })
87}
88
89func dnsResolve(host string) (res netip.Addr) {
90 ctx, cl := context.WithTimeout(context.Background(), 5*time.Second)

Callers

nothing calls this directly

Calls 3

myIPAddressFunction · 0.85
SetMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected