mirror of
https://github.com/daeuniverse/dae.git
synced 2025-07-30 06:39:55 +07:00
chore
This commit is contained in:
@ -5,9 +5,15 @@ import (
|
||||
)
|
||||
|
||||
func NewDirectDialer(option *GlobalOption, fullcone bool) *Dialer {
|
||||
property := Property{
|
||||
Name: "direct",
|
||||
Address: "",
|
||||
Protocol: "",
|
||||
Link: "",
|
||||
}
|
||||
if fullcone {
|
||||
return NewDialer(softwindDirect.FullconeDirect, option, InstanceOption{CheckEnabled: false}, "direct", "direct", "")
|
||||
return NewDialer(softwindDirect.FullconeDirect, option, InstanceOption{CheckEnabled: false}, property)
|
||||
} else {
|
||||
return NewDialer(softwindDirect.SymmetricDirect, option, InstanceOption{CheckEnabled: false}, "direct", "direct", "")
|
||||
return NewDialer(softwindDirect.SymmetricDirect, option, InstanceOption{CheckEnabled: false}, property)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user