mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-12-22 19:33:32 +02:00
Temporarily turn off sockopt for UDP on windows
This commit is contained in:
parent
a15334b395
commit
bf02392969
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@ package internet
|
|||
|
||||
import (
|
||||
"context"
|
||||
"runtime"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
|
@ -66,7 +67,7 @@ func (d *DefaultSystemDialer) Dial(ctx context.Context, src net.Address, dest ne
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if sockopt != nil || len(d.controllers) > 0 {
|
||||
if runtime.GOOS != "windows" && (sockopt != nil || len(d.controllers) > 0) {
|
||||
file, err := packetConn.(*net.UDPConn).File()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Reference in a new issue