@@ -96,6 +96,8 @@ pub async fn config_ephemeral_peers(
96
96
retry_attempt,
97
97
obfuscator,
98
98
close_obfs_sender,
99
+ #[ cfg( not( target_os = "android" ) ) ]
100
+ connectivity,
99
101
#[ cfg( target_os = "android" ) ]
100
102
tun_provider,
101
103
)
@@ -114,7 +116,7 @@ async fn config_ephemeral_peers_inner(
114
116
#[ cfg( target_os = "android" ) ] tun_provider : Arc < Mutex < TunProvider > > ,
115
117
) -> Result < ( ) , CloseMsg > {
116
118
#[ cfg( not( target_os = "android" ) ) ]
117
- reestablish_tunnel_connection ( tunnel, connectivity) . await ?;
119
+ establish_tunnel_connection ( tunnel, connectivity) . await ?;
118
120
119
121
let ephemeral_private_key = PrivateKey :: new_from_random ( ) ;
120
122
let close_obfs_sender = close_obfs_sender. clone ( ) ;
@@ -155,7 +157,7 @@ async fn config_ephemeral_peers_inner(
155
157
. await ?;
156
158
157
159
#[ cfg( not( target_os = "android" ) ) ]
158
- reestablish_tunnel_connection ( tunnel, connectivity) . await ?;
160
+ establish_tunnel_connection ( tunnel, connectivity) . await ?;
159
161
160
162
let entry_ephemeral_peer = request_ephemeral_peer (
161
163
retry_attempt,
@@ -295,7 +297,7 @@ async fn reconfigure_tunnel(
295
297
/// force a WireGuard handshake.
296
298
/// This should reduce the number of PQ timeouts.
297
299
#[ cfg( not( target_os = "android" ) ) ]
298
- async fn reestablish_tunnel_connection (
300
+ async fn establish_tunnel_connection (
299
301
tunnel : & Arc < AsyncMutex < Option < TunnelType > > > ,
300
302
connectivity : & mut connectivity:: Check < connectivity:: Cancellable > ,
301
303
) -> Result < ( ) , CloseMsg > {
0 commit comments