dae/component/outbound/dialer/direct.go

14 lines
427 B
Go

package dialer
import (
softwindDirect "github.com/mzz2017/softwind/protocol/direct"
)
func NewDirectDialer(option *GlobalOption, fullcone bool) *Dialer {
if fullcone {
return NewDialer(softwindDirect.FullconeDirect, option, InstanceOption{CheckEnabled: false}, "direct", "direct", "")
} else {
return NewDialer(softwindDirect.SymmetricDirect, option, InstanceOption{CheckEnabled: false}, "direct", "direct", "")
}
}