File tree Expand file tree Collapse file tree 1 file changed +50
-4
lines changed Expand file tree Collapse file tree 1 file changed +50
-4
lines changed Original file line number Diff line number Diff line change @@ -2257,13 +2257,33 @@ impl Socket {
2257
2257
/// redirected using `iptables` `REDIRECT` or `TPROXY`.
2258
2258
#[ cfg( all(
2259
2259
feature = "all" ,
2260
- any( target_os = "android" , target_os = "fuchsia" , target_os = "linux" )
2260
+ any(
2261
+ target_os = "android" ,
2262
+ target_os = "dragonfly" ,
2263
+ target_os = "freebsd" ,
2264
+ target_os = "fuchsia" ,
2265
+ target_os = "hurd" ,
2266
+ target_os = "illumos" ,
2267
+ target_os = "linux" ,
2268
+ target_os = "netbsd" ,
2269
+ target_os = "openbsd" ,
2270
+ )
2261
2271
) ) ]
2262
2272
#[ cfg_attr(
2263
2273
docsrs,
2264
2274
doc( cfg( all(
2265
2275
feature = "all" ,
2266
- any( target_os = "android" , target_os = "fuchsia" , target_os = "linux" )
2276
+ any(
2277
+ target_os = "android" ,
2278
+ target_os = "dragonfly" ,
2279
+ target_os = "freebsd" ,
2280
+ target_os = "fuchsia" ,
2281
+ target_os = "hurd" ,
2282
+ target_os = "illumos" ,
2283
+ target_os = "linux" ,
2284
+ target_os = "netbsd" ,
2285
+ target_os = "openbsd" ,
2286
+ )
2267
2287
) ) )
2268
2288
) ]
2269
2289
pub fn original_dst ( & self ) -> io:: Result < SockAddr > {
@@ -2286,10 +2306,36 @@ impl Socket {
2286
2306
///
2287
2307
/// This value contains the original destination IPv6 address of the connection
2288
2308
/// redirected using `ip6tables` `REDIRECT` or `TPROXY`.
2289
- #[ cfg( all( feature = "all" , any( target_os = "android" , target_os = "linux" ) ) ) ]
2309
+ #[ cfg( all(
2310
+ feature = "all" ,
2311
+ any(
2312
+ target_os = "android" ,
2313
+ target_os = "dragonfly" ,
2314
+ target_os = "freebsd" ,
2315
+ target_os = "fuchsia" ,
2316
+ target_os = "hurd" ,
2317
+ target_os = "illumos" ,
2318
+ target_os = "linux" ,
2319
+ target_os = "netbsd" ,
2320
+ target_os = "openbsd" ,
2321
+ )
2322
+ ) ) ]
2290
2323
#[ cfg_attr(
2291
2324
docsrs,
2292
- doc( cfg( all( feature = "all" , any( target_os = "android" , target_os = "linux" ) ) ) )
2325
+ doc( cfg( all(
2326
+ feature = "all" ,
2327
+ any(
2328
+ target_os = "android" ,
2329
+ target_os = "dragonfly" ,
2330
+ target_os = "freebsd" ,
2331
+ target_os = "fuchsia" ,
2332
+ target_os = "hurd" ,
2333
+ target_os = "illumos" ,
2334
+ target_os = "linux" ,
2335
+ target_os = "netbsd" ,
2336
+ target_os = "openbsd" ,
2337
+ )
2338
+ ) ) )
2293
2339
) ]
2294
2340
pub fn original_dst_ipv6 ( & self ) -> io:: Result < SockAddr > {
2295
2341
// Safety: `getsockopt` initialises the `SockAddr` for us.
You can’t perform that action at this time.
0 commit comments