@@ -151,9 +151,7 @@ impl<T: IdentityType + Clone + Eq + Hash + Send + ToString + 'static, AE: AsyncE
151151 Ok ( result) => result,
152152 Err ( err) => {
153153 warn ! ( "server flow: tailor decryption failed from {source_addr}: {err}" ) ;
154- self . probe_handler . lock ( ) . await . process (
155- encrypted_packet. expand_end ( identity_len + tailor_overhead) , Some ( source_addr) ,
156- ) . await ;
154+ self . probe_handler . lock ( ) . await . process ( encrypted_packet. expand_end ( identity_len + tailor_overhead) , Some ( source_addr) ) . await ;
157155 continue ;
158156 }
159157 } ;
@@ -162,9 +160,7 @@ impl<T: IdentityType + Clone + Eq + Hash + Send + ToString + 'static, AE: AsyncE
162160 let identity = tailor. identity ( ) ;
163161 if let Err ( err) = crypto. verify_tailor ( & identity, transcript) . await {
164162 debug ! ( "error verifying packet tailor: {err}" ) ;
165- self . probe_handler . lock ( ) . await . process (
166- encrypted_packet. expand_end ( identity_len + tailor_overhead) , Some ( source_addr) ,
167- ) . await ;
163+ self . probe_handler . lock ( ) . await . process ( encrypted_packet. expand_end ( identity_len + tailor_overhead) , Some ( source_addr) ) . await ;
168164 continue ;
169165 }
170166 }
@@ -194,9 +190,7 @@ impl<T: IdentityType + Clone + Eq + Hash + Send + ToString + 'static, AE: AsyncE
194190 }
195191 } else {
196192 // Non-handshake, non-decoy packet from an unregistered user.
197- self . probe_handler . lock ( ) . await . process (
198- encrypted_packet. expand_end ( identity_len + tailor_overhead) , Some ( source_addr) ,
199- ) . await ;
193+ self . probe_handler . lock ( ) . await . process ( encrypted_packet. expand_end ( identity_len + tailor_overhead) , Some ( source_addr) ) . await ;
200194 continue ;
201195 }
202196 }
@@ -226,11 +220,7 @@ impl<T: IdentityType + Clone + Eq + Hash + Send + ToString + 'static, AE: AsyncE
226220}
227221
228222impl < T : IdentityType + Clone + Eq + Hash + Send + ToString + ' static , AE : AsyncExecutor + ' static > ProbeFlowSender for ServerFlowManager < T , AE > {
229- fn send_raw < ' a > (
230- & ' a self ,
231- packet : DynamicByteBuffer ,
232- target : SocketAddr ,
233- ) -> Pin < Box < dyn Future < Output = Result < ( ) , SocketError > > + Send + ' a > > {
223+ fn send_raw < ' a > ( & ' a self , packet : DynamicByteBuffer , target : SocketAddr ) -> Pin < Box < dyn Future < Output = Result < ( ) , SocketError > > + Send + ' a > > {
234224 Box :: pin ( async move { self . socks [ 0 ] . send_to ( packet, target) . await . map ( |_| ( ) ) } )
235225 }
236226}
0 commit comments