mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-06 20:34:19 +08:00
添加 advertise_dtls_addr
This commit is contained in:
@@ -87,8 +87,8 @@ func LinkTunnel(w http.ResponseWriter, r *http.Request) {
|
||||
cSess.CstpDpd = cstpDpd
|
||||
|
||||
dtlsPort := "443"
|
||||
if strings.Contains(base.Cfg.ServerDTLSAddr, ":") {
|
||||
ss := strings.Split(base.Cfg.ServerDTLSAddr, ":")
|
||||
if strings.Contains(base.Cfg.AdvertiseDTLSAddr, ":") {
|
||||
ss := strings.Split(base.Cfg.AdvertiseDTLSAddr, ":")
|
||||
dtlsPort = ss[1]
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user