Commit dd78d954 authored by Eric's avatar Eric

[Update] fix bugs

parent 262803eb
......@@ -185,7 +185,7 @@ func (h *interactiveHandler) Dispatch(ctx cctx.Context) {
case strings.Index(line, "/") == 0:
searchWord := strings.TrimSpace(line[1:])
assets := h.searchAsset(searchWord)
h.displayAssetsOrProxy(assets)
h.displayAssets(assets)
case strings.Index(line, "g") == 0:
searchWord := strings.TrimSpace(strings.TrimPrefix(line, "g"))
if num, err := strconv.Atoi(searchWord); err == nil {
......
......@@ -57,7 +57,7 @@ func (p *ProxyServer) validatePermission() bool {
func (p *ProxyServer) getSSHConn() (srvConn *ServerSSHConnection, err error) {
srvConn = &ServerSSHConnection{
name: p.Asset.Id,
name: p.Asset.Hostname,
host: p.Asset.Ip,
port: strconv.Itoa(p.Asset.Port),
user: p.SystemUser.Username,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment