(vm *goja.Runtime)
| 81 | } |
| 82 | |
| 83 | func 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 | |
| 89 | func dnsResolve(host string) (res netip.Addr) { |
| 90 | ctx, cl := context.WithTimeout(context.Background(), 5*time.Second) |
nothing calls this directly
no test coverage detected