Fix acl engine not set in TUN server

This commit is contained in:
Haruue Icymoon 2021-04-29 17:21:19 +08:00
parent 284efce6db
commit abfacebd40
No known key found for this signature in database
GPG key ID: F6083B28CBCBC148

View file

@ -202,6 +202,7 @@ func client(config *clientConfig) {
if err != nil {
logrus.WithField("error", err).Fatal("Failed to initialize TUN server")
}
tunServer.ACLEngine = aclEngine
tunServer.RequestFunc = func(addr net.Addr, reqAddr string, action acl.Action, arg string) {
logrus.WithFields(logrus.Fields{
"action": actionToString(action, arg),