mirror of
https://github.com/daeuniverse/dae.git
synced 2025-07-16 10:50:01 +07:00
feat(lan): use sockmap instead of sk_lookup for tproxy socket (#8)
This commit is contained in:
@ -26,6 +26,9 @@ var (
|
||||
logrus.Fatalln("Argument \"--config\" or \"-c\" is required but not provided.")
|
||||
}
|
||||
|
||||
// Require "sudo" if necessary.
|
||||
internal.AutoSu()
|
||||
|
||||
// Read config from --config cfgFile.
|
||||
param, err := readConfig(cfgFile)
|
||||
if err != nil {
|
||||
@ -48,9 +51,6 @@ func init() {
|
||||
|
||||
func Run(log *logrus.Logger, param *config.Params) (err error) {
|
||||
|
||||
// Require "sudo" if necessary.
|
||||
internal.AutoSu()
|
||||
|
||||
// Resolve subscriptions to nodes.
|
||||
nodeList := make([]string, len(param.Node))
|
||||
copy(nodeList, param.Node)
|
||||
|
Reference in New Issue
Block a user