added SvcPermNet to ServerRouteProxyInfo
This commit is contained in:
parent
0100d615d8
commit
42fec28a0e
@ -293,6 +293,7 @@ func (ctl *server_ctl_server_conns_id_routes_id) ServeHTTP(w http.ResponseWriter
|
|||||||
PtcName: pi.PtcName,
|
PtcName: pi.PtcName,
|
||||||
PtcAddr: pi.PtcAddr,
|
PtcAddr: pi.PtcAddr,
|
||||||
SvcAddr: pi.SvcAddr,
|
SvcAddr: pi.SvcAddr,
|
||||||
|
SvcPermNet: pi.SvcPermNet,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,7 @@ import "fmt"
|
|||||||
import "io"
|
import "io"
|
||||||
import "net"
|
import "net"
|
||||||
import "net/http"
|
import "net/http"
|
||||||
|
import "net/netip"
|
||||||
import "net/url"
|
import "net/url"
|
||||||
import "strconv"
|
import "strconv"
|
||||||
import "strings"
|
import "strings"
|
||||||
@ -54,6 +55,7 @@ type ServerRouteProxyInfo struct {
|
|||||||
PtcAddr string
|
PtcAddr string
|
||||||
PtcName string
|
PtcName string
|
||||||
SvcAddr *net.TCPAddr
|
SvcAddr *net.TCPAddr
|
||||||
|
SvcPermNet netip.Prefix
|
||||||
|
|
||||||
PathPrefix string
|
PathPrefix string
|
||||||
ConnId string
|
ConnId string
|
||||||
@ -230,6 +232,7 @@ func (pxy *server_proxy_http_main) get_route(req *http.Request, in_wpx_mode bool
|
|||||||
PtcAddr: r.PtcAddr,
|
PtcAddr: r.PtcAddr,
|
||||||
PtcName: r.PtcName,
|
PtcName: r.PtcName,
|
||||||
SvcAddr: r.SvcAddr,
|
SvcAddr: r.SvcAddr,
|
||||||
|
SvcPermNet: r.SvcPermNet,
|
||||||
PathPrefix: path_prefix,
|
PathPrefix: path_prefix,
|
||||||
ConnId: conn_id,
|
ConnId: conn_id,
|
||||||
RouteId: route_id,
|
RouteId: route_id,
|
||||||
@ -674,6 +677,7 @@ func (pxy *server_proxy_ssh_ws) ServeWebsocket(ws *websocket.Conn) {
|
|||||||
PtcName: pi.PtcName,
|
PtcName: pi.PtcName,
|
||||||
PtcAddr: pi.PtcAddr,
|
PtcAddr: pi.PtcAddr,
|
||||||
SvcAddr: pi.SvcAddr,
|
SvcAddr: pi.SvcAddr,
|
||||||
|
SvcPermNet: pi.SvcPermNet,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user