mirror of
https://github.com/cedar2025/hysteria.git
synced 2025-06-09 05:59:54 +00:00
Fix acl engine not set in TUN server
This commit is contained in:
parent
284efce6db
commit
abfacebd40
@ -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),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user