@@ -1293,8 +1293,8 @@ func (h *TunnelHandler) HandleTemplateCreate(w http.ResponseWriter, r *http.Requ
12931293
12941294 // ⇔生成隧道名称 - 格式:${入口主控名}to${出口主控名}-${类型}-${时间}
12951295 timestamp := time .Now ().Unix ()
1296- serverTunnelName := fmt .Sprintf ("%s→%s-%d" , clientEndpoint .Name , serverEndpoint .Name , timestamp )
1297- clientTunnelName := fmt .Sprintf ("%s→%s-%d" , clientEndpoint .Name , serverEndpoint .Name , timestamp )
1296+ serverTunnelName := fmt .Sprintf ("%s→%s-s- %d" , clientEndpoint .Name , serverEndpoint .Name , timestamp )
1297+ clientTunnelName := fmt .Sprintf ("%s→%s-c- %d" , clientEndpoint .Name , serverEndpoint .Name , timestamp )
12981298
12991299 log .Infof ("[API] 开始创建双端隧道 - 先创建server端,再创建client端" )
13001300
@@ -1448,8 +1448,8 @@ func (h *TunnelHandler) HandleTemplateCreate(w http.ResponseWriter, r *http.Requ
14481448
14491449 // 生成隧道名称 - 格式:${入口主控名}to${出口主控名}-${类型}-${时间}
14501450 timestamp := time .Now ().Unix ()
1451- serverTunnelName := fmt .Sprintf ("%s→%s-%d" , clientEndpoint .Name , serverEndpoint .Name , timestamp )
1452- clientTunnelName := fmt .Sprintf ("%s→%s-%d" , clientEndpoint .Name , serverEndpoint .Name , timestamp )
1451+ serverTunnelName := fmt .Sprintf ("%s→%s-s- %d" , clientEndpoint .Name , serverEndpoint .Name , timestamp )
1452+ clientTunnelName := fmt .Sprintf ("%s→%s-c- %d" , clientEndpoint .Name , serverEndpoint .Name , timestamp )
14531453
14541454 log .Infof ("[API] 开始创建内网穿透隧道 - 先创建server端,再创建client端" )
14551455
0 commit comments