mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-19 06:26:14 -05:00
fix: resolve gateway route using the parsed hostname
This commit is contained in:
1 file changed
+1
-1
@@ -101,7 +101,7 @@ impl GatewayLoginClient {
|
|||||||
context
|
context
|
||||||
.client_ip()
|
.client_ip()
|
||||||
.map(str::to_owned)
|
.map(str::to_owned)
|
||||||
.or_else(|| detect_local_ipv4(context.host()))
|
.or_else(|| self.origin.host_str().and_then(detect_local_ipv4))
|
||||||
});
|
});
|
||||||
let request = receive_gateway_login(
|
let request = receive_gateway_login(
|
||||||
&self.origin,
|
&self.origin,
|
||||||
|
|||||||
Reference in new issue
Block a user