优化gc性能

This commit is contained in:
bjdgyc
2021-05-29 18:11:50 +08:00
parent 0512ce197a
commit b704e089b6
5 changed files with 12 additions and 4 deletions

View File

@@ -70,7 +70,7 @@ func LinkTunnel(w http.ResponseWriter, r *http.Request) {
}
cSess.CstpDpd = cstpDpd
dtlsPort := ""
dtlsPort := "4433"
if strings.Contains(base.Cfg.ServerDTLSAddr, ":") {
ss := strings.Split(base.Cfg.ServerDTLSAddr, ":")
dtlsPort = ss[1]