mirror of
https://github.com/daeuniverse/dae.git
synced 2025-03-12 11:00:02 +07:00

* feat/refactor: support the chains node * docs: update example.dae * fix: order * fix: http --------- Co-authored-by: dae-bot[bot] <136105375+dae-bot[bot]@users.noreply.github.com>
21 lines
445 B
Go
21 lines
445 B
Go
package dialer
|
|
|
|
import (
|
|
"github.com/mzz2017/softwind/netproxy"
|
|
softwindDirect "github.com/mzz2017/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
|
|
}
|
|
}
|