mirror of
https://github.com/daeuniverse/dae.git
synced 2025-01-27 16:11:05 +07:00
a6382423a4
* fix: bad ipversion selection caused by #251 * chore: upgrade softwind
21 lines
453 B
Go
21 lines
453 B
Go
package dialer
|
|
|
|
import (
|
|
"github.com/daeuniverse/softwind/netproxy"
|
|
softwindDirect "github.com/daeuniverse/softwind/protocol/direct"
|
|
)
|
|
|
|
func NewDirectDialer(option *GlobalOption, fullcone bool) (netproxy.Dialer, *Property) {
|
|
property := &Property{
|
|
Name: "direct",
|
|
Address: "",
|
|
Protocol: "",
|
|
Link: "",
|
|
}
|
|
if fullcone {
|
|
return softwindDirect.FullconeDirect, property
|
|
} else {
|
|
return softwindDirect.SymmetricDirect, property
|
|
}
|
|
}
|