Skip to content

Commit 4605783

Browse files
committed
windows also supports dual-stack udp socket
1 parent 95a3c9c commit 4605783

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

crates/shadowsocks-service/src/local/net/udp/association.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@ where
477477
target_os = "freebsd",
478478
// target_os = "dragonfly",
479479
// target_os = "netbsd",
480+
target_os = "windows",
480481
));
481482

482483
let socket = if UDP_SOCKET_SUPPORT_DUAL_STACK {

crates/shadowsocks-service/src/server/udprelay.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,7 @@ impl UdpAssociationContext {
657657
target_os = "freebsd",
658658
// target_os = "dragonfly",
659659
// target_os = "netbsd",
660+
target_os = "windows",
660661
));
661662

662663
let socket = if UDP_SOCKET_SUPPORT_DUAL_STACK {

0 commit comments

Comments
 (0)