Skip to content

Commit

Permalink
g3proxy: set expire info for socks5 peers in proxy_float
Browse files Browse the repository at this point in the history
  • Loading branch information
zh-jq committed Oct 25, 2024
1 parent 83919ec commit ab19798
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions g3proxy/src/escape/proxy_float/peer/socks5/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ impl NextProxyPeer for ProxyFloatSocks5Peer {
task_notes: &ServerTaskNotes,
task_stats: ArcUdpConnectTaskRemoteStats,
) -> UdpConnectResult {
udp_notes.expire = self.expire_datetime();
self.udp_connect_to(escaper, udp_notes, task_notes, task_stats)
.await
}
Expand All @@ -283,6 +284,7 @@ impl NextProxyPeer for ProxyFloatSocks5Peer {
task_notes: &ServerTaskNotes,
task_stats: ArcUdpRelayTaskRemoteStats,
) -> UdpRelaySetupResult {
udp_notes.expire = self.expire_datetime();
self.udp_setup_relay(escaper, udp_notes, task_notes, task_stats)
.await
}
Expand Down
2 changes: 2 additions & 0 deletions g3proxy/src/escape/proxy_float/peer/socks5s/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ impl NextProxyPeer for ProxyFloatSocks5sPeer {
task_notes: &ServerTaskNotes,
task_stats: ArcUdpConnectTaskRemoteStats,
) -> UdpConnectResult {
udp_notes.expire = self.expire_datetime();
self.udp_connect_to(escaper, udp_notes, task_notes, task_stats)
.await
}
Expand All @@ -262,6 +263,7 @@ impl NextProxyPeer for ProxyFloatSocks5sPeer {
task_notes: &ServerTaskNotes,
task_stats: ArcUdpRelayTaskRemoteStats,
) -> UdpRelaySetupResult {
udp_notes.expire = self.expire_datetime();
self.udp_setup_relay(escaper, udp_notes, task_notes, task_stats)
.await
}
Expand Down

0 comments on commit ab19798

Please sign in to comment.