docs: README

This commit is contained in:
mzz2017 2023-02-05 11:00:29 +08:00
parent 10c0c264b2
commit 0d643f0c6d
2 changed files with 6 additions and 6 deletions

View File

@ -17,6 +17,7 @@ As a successor of [v2rayA](https://github.com/v2rayA/v2rayA), dae abandoned v2ra
clang >= 10
llvm >= 10
golang >= 1.18
make
```
**Build**
@ -25,8 +26,8 @@ git clone https://github.com/v2rayA/dae.git
cd dae
git submodule update --init
# Minimal dependency build:
make GOFLAGS="-buildvcs=false" CGO_ENABLED=0
# Or normally build:
make GOFLAGS="-buildvcs=false" CC=clang
# Or normal build:
# make
```

View File

@ -41,13 +41,12 @@ func (d *direct) Dial(network, addr string) (c net.Conn, err error) {
case "udp":
if d.fullCone {
conn, err := net.ListenUDP(network, nil)
raw, err := conn.SyscallConn()
if err != nil {
return nil, err
}
_ = SoMarkControl(raw)
if err != nil {
return nil, err
raw, e := conn.SyscallConn()
if e == nil {
_ = SoMarkControl(raw)
}
return &directUDPConn{UDPConn: conn, FullCone: true}, nil
} else {