dae/component/outbound/dialer/direct.go
mzz a2f7c37f4d
feat/refactor: support the node-level proxy chain (#235)
* 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>
2023-07-23 20:36:57 +08:00

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
}
}