forked from daeuniverse/dae
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat/refactor: refactor outbound and support v2ray-plugin (daeunivers…
- Loading branch information
Showing
33 changed files
with
124 additions
and
2,582 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,14 @@ | ||
package dialer | ||
|
||
import ( | ||
D "github.com/daeuniverse/outbound/dialer" | ||
"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 | ||
d, _p := D.NewDirectDialer(&option.ExtraOption, fullcone) | ||
return d, &Property{ | ||
Property: *_p, | ||
SubscriptionTag: "", | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.