- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 33 for remoteaddr (0.2 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/net/http_test.go
realIP string forwardedFor string remoteAddr string expected []string }{{ name: "no headers, missing remoteAddr", expected: []string{}, }, { name: "no headers, just remoteAddr host:port", remoteAddr: "1.2.3.4:555", expected: []string{"1.2.3.4"}, }, { name: "no headers, just remoteAddr host", remoteAddr: "1.2.3.4", expected: []string{"1.2.3.4"}, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 18 01:21:56 UTC 2023 - 24.5K bytes - Viewed (0) -
src/net/http/cgi/host.go
} if remoteIP, remotePort, err := net.SplitHostPort(req.RemoteAddr); err == nil { env = append(env, "REMOTE_ADDR="+remoteIP, "REMOTE_HOST="+remoteIP, "REMOTE_PORT="+remotePort) } else { // could not parse ip:port, let's use whole RemoteAddr and leave REMOTE_PORT undefined env = append(env, "REMOTE_ADDR="+req.RemoteAddr, "REMOTE_HOST="+req.RemoteAddr) } if hostDomain, _, err := net.SplitHostPort(req.Host); err == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 20:46:32 UTC 2024 - 10.4K bytes - Viewed (0) -
pkg/test/echo/server/endpoint/http.go
slices int } func (h *httpHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { id := uuid.New() remoteAddr, _, err := net.SplitHostPort(r.RemoteAddr) if err != nil { epLog.Warnf("failed to get host from remote address: %s", err) } epLog.WithLabels("remoteAddr", remoteAddr, "method", r.Method, "url", r.URL, "host", r.Host, "headers", r.Header, "id", id).Infof("%v Request", r.Proto) if h.Port == nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 16:20:31 UTC 2023 - 12.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/filters/maxinflight_test.go
disableCallsWgMutex.Unlock() if waitForCalls { callsWg.Done() } t.Logf("About to blockWg.Wait(), requestURI=%v, remoteAddr=%v", r.RequestURI, r.RemoteAddr) blockWg.Wait() t.Logf("Returned from blockWg.Wait(), requestURI=%v, remoteAddr=%v", r.RequestURI, r.RemoteAddr) }), nonMutating, mutating, longRunningRequestCheck, ) handler = withFakeUser(handler)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 10.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/proxy/streamtunnel_test.go
Port: 443, } tc := &tunnelingWebsocketUpgraderConn{ conn: &mockConn{ localAddr: expectedLocalAddr, remoteAddr: expectedRemoteAddr, }, } assert.Equal(t, expectedLocalAddr, tc.LocalAddr(), "LocalAddr() returns expected TCPAddr") assert.Equal(t, expectedRemoteAddr, tc.RemoteAddr(), "RemoteAddr() returns expected TCPAddr") // Connection nil, returns empty address tc.conn = nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 02:21:50 UTC 2024 - 22.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/net/http.go
} return "unknown" } // SourceIPs splits the comma separated X-Forwarded-For header and joins it with // the X-Real-Ip header and/or req.RemoteAddr, ignoring invalid IPs. // The X-Real-Ip is omitted if it's already present in the X-Forwarded-For chain. // The req.RemoteAddr is always the last IP in the returned list. // It returns nil if all of these are empty or invalid. func SourceIPs(req *http.Request) []net.IP {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 05 00:08:58 UTC 2022 - 20.8K bytes - Viewed (0) -
src/net/http/cgi/host_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 18:29:59 UTC 2024 - 13.3K bytes - Viewed (0) -
internal/grid/manager.go
fmt.Printf("grid: Got a %s request for: %v\n", req.Method, req.URL) } ctx := req.Context() if err := m.authRequest(req); err != nil { gridLogOnceIf(ctx, fmt.Errorf("auth %s: %w", req.RemoteAddr, err), req.RemoteAddr) w.WriteHeader(http.StatusForbidden) return } conn, _, _, err := ws.UpgradeHTTP(req, w) if err != nil { if debugPrint {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 17:40:33 UTC 2024 - 9.8K bytes - Viewed (0) -
pilot/cmd/pilot-agent/status/server_test.go
name string method string remoteAddr string expected int }{ { name: "should send a sigterm for valid requests", method: "POST", remoteAddr: "127.0.0.1", expected: http.StatusOK, }, { name: "should send a sigterm for valid ipv6 requests", method: "POST", remoteAddr: "[::1]", expected: http.StatusOK, }, {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 15:07:03 UTC 2024 - 42.6K bytes - Viewed (0) -
src/net/unixsock_test.go
if laddr == "" { laddr = "@" // autobind feature } } var connAddrs = [4]struct{ got, want Addr }{ {c1.LocalAddr(), ta}, {c1.RemoteAddr(), nil}, {c2.LocalAddr(), &UnixAddr{Name: laddr, Net: "unixgram"}}, {c2.RemoteAddr(), ta}, } for _, ca := range connAddrs { if !reflect.DeepEqual(ca.got, ca.want) { t.Fatalf("got %#v; want %#v", ca.got, ca.want) } } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 10.6K bytes - Viewed (0)