File tree 1 file changed +7
-0
lines changed
src/client/legacy/connect 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ struct Config {
76
76
reuse_address : bool ,
77
77
send_buffer_size : Option < usize > ,
78
78
recv_buffer_size : Option < usize > ,
79
+ #[ cfg( any( target_os = "android" , target_os = "fuchsia" , target_os = "linux" ) ) ]
79
80
interface : Option < String > ,
80
81
}
81
82
@@ -179,6 +180,7 @@ impl<R> HttpConnector<R> {
179
180
reuse_address : false ,
180
181
send_buffer_size : None ,
181
182
recv_buffer_size : None ,
183
+ #[ cfg( any( target_os = "android" , target_os = "fuchsia" , target_os = "linux" ) ) ]
182
184
interface : None ,
183
185
} ) ,
184
186
resolver,
@@ -1117,6 +1119,11 @@ mod tests {
1117
1119
enforce_http : false ,
1118
1120
send_buffer_size : None ,
1119
1121
recv_buffer_size : None ,
1122
+ #[ cfg( any(
1123
+ target_os = "android" ,
1124
+ target_os = "fuchsia" ,
1125
+ target_os = "linux"
1126
+ ) ) ]
1120
1127
interface : None ,
1121
1128
} ;
1122
1129
let connecting_tcp = ConnectingTcp :: new ( dns:: SocketAddrs :: new ( addrs) , & cfg) ;
You can’t perform that action at this time.
0 commit comments