This commit is contained in:
Maze.tsz
2021-12-27 03:16:48 +08:00
parent 82c8e02d02
commit e2a0437685
6 changed files with 10 additions and 7 deletions

View File

@ -79,7 +79,7 @@ func patchConfigs(w http.ResponseWriter, r *http.Request) {
P.ReCreateMixed(pointerOrDefault(general.MixedPort, ports.MixedPort), tcpIn, udpIn)
if general.Tun != nil {
err := P.ReCreateTun(*general.Tun, nil, nil)
err := P.ReCreateTun(*general.Tun, tcpIn, udpIn)
if err == nil {
log.Infoln("Recreate tun success.")
} else {