@@ -720,7 +720,7 @@ func (h *EndpointHandler) HandleRecycleList(w http.ResponseWriter, r *http.Reque
720720
721721 // 查询 TunnelRecycle 表所有字段
722722 rows , err := db .Query (`SELECT id, name, mode, tunnelAddress, tunnelPort, targetAddress, targetPort, tlsMode,
723- certPath, keyPath, logLevel, commandLine, instanceId, tcpRx, tcpTx, udpRx, udpTx, min, max
723+ certPath, keyPath, logLevel, commandLine, instanceId, password, tcpRx, tcpTx, udpRx, udpTx, min, max
724724 FROM "TunnelRecycle" WHERE endpointId = ? ORDER BY id DESC` , endpointID )
725725 if err != nil {
726726 w .WriteHeader (http .StatusInternalServerError )
@@ -743,6 +743,7 @@ func (h *EndpointHandler) HandleRecycleList(w http.ResponseWriter, r *http.Reque
743743 LogLevel string `json:"logLevel"`
744744 CommandLine string `json:"commandLine"`
745745 InstanceID sql.NullString `json:"instanceId"`
746+ Password string `json:"password"`
746747 TCPRx int64 `json:"tcpRx"`
747748 TCPTx int64 `json:"tcpTx"`
748749 UDPRx int64 `json:"udpRx"`
@@ -756,7 +757,7 @@ func (h *EndpointHandler) HandleRecycleList(w http.ResponseWriter, r *http.Reque
756757 var item recycleItem
757758 if err := rows .Scan (
758759 & item .ID , & item .Name , & item .Mode , & item .TunnelAddress , & item .TunnelPort , & item .TargetAddress , & item .TargetPort , & item .TLSMode ,
759- & item .CertPath , & item .KeyPath , & item .LogLevel , & item .CommandLine , & item .InstanceID , & item .TCPRx , & item .TCPTx , & item .UDPRx , & item .UDPTx , & item .Min , & item .Max ,
760+ & item .CertPath , & item .KeyPath , & item .LogLevel , & item .CommandLine , & item .InstanceID , & item .Password , & item . TCPRx , & item .TCPTx , & item .UDPRx , & item .UDPTx , & item .Min , & item .Max ,
760761 ); err == nil {
761762 list = append (list , item )
762763 }
@@ -870,7 +871,7 @@ func (h *EndpointHandler) HandleRecycleListAll(w http.ResponseWriter, r *http.Re
870871 db := h .endpointService .DB ()
871872
872873 rows , err := db .Query (`SELECT tr.id, tr.name, tr.mode, tr.tunnelAddress, tr.tunnelPort, tr.targetAddress, tr.targetPort, tr.tlsMode,
873- tr.certPath, tr.keyPath, tr.logLevel, tr.commandLine, tr.instanceId, tr.tcpRx, tr.tcpTx, tr.udpRx, tr.udpTx, tr.min, tr.max,
874+ tr.certPath, tr.keyPath, tr.logLevel, tr.commandLine, tr.instanceId, tr.password, tr. tcpRx, tr.tcpTx, tr.udpRx, tr.udpTx, tr.min, tr.max,
874875 tr.endpointId, ep.name as endpointName
875876 FROM "TunnelRecycle" tr
876877 JOIN "Endpoint" ep ON tr.endpointId = ep.id
@@ -898,6 +899,7 @@ func (h *EndpointHandler) HandleRecycleListAll(w http.ResponseWriter, r *http.Re
898899 LogLevel string `json:"logLevel"`
899900 CommandLine string `json:"commandLine"`
900901 InstanceID sql.NullString `json:"instanceId"`
902+ Password string `json:"password"`
901903 TCPRx int64 `json:"tcpRx"`
902904 TCPTx int64 `json:"tcpTx"`
903905 UDPRx int64 `json:"udpRx"`
@@ -911,7 +913,7 @@ func (h *EndpointHandler) HandleRecycleListAll(w http.ResponseWriter, r *http.Re
911913 var item recycleItemAll
912914 if err := rows .Scan (
913915 & item .ID , & item .Name , & item .Mode , & item .TunnelAddress , & item .TunnelPort , & item .TargetAddress , & item .TargetPort , & item .TLSMode ,
914- & item .CertPath , & item .KeyPath , & item .LogLevel , & item .CommandLine , & item .InstanceID , & item .TCPRx , & item .TCPTx , & item .UDPRx , & item .UDPTx , & item .Min , & item .Max ,
916+ & item .CertPath , & item .KeyPath , & item .LogLevel , & item .CommandLine , & item .InstanceID , & item .Password , & item . TCPRx , & item .TCPTx , & item .UDPRx , & item .UDPTx , & item .Min , & item .Max ,
915917 & item .EndpointID , & item .EndpointName ,
916918 ); err == nil {
917919 list = append (list , item )
0 commit comments