mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-09-16 05:04:33 +00:00
Fix acl engine not set in TUN server
This commit is contained in:
@@ -202,6 +202,7 @@ func client(config *clientConfig) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.WithField("error", err).Fatal("Failed to initialize TUN server")
|
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) {
|
tunServer.RequestFunc = func(addr net.Addr, reqAddr string, action acl.Action, arg string) {
|
||||||
logrus.WithFields(logrus.Fields{
|
logrus.WithFields(logrus.Fields{
|
||||||
"action": actionToString(action, arg),
|
"action": actionToString(action, arg),
|
||||||
|
Reference in New Issue
Block a user