Skip to content

Commit

Permalink
Fix golang 1.8 url.Parse
Browse files Browse the repository at this point in the history
  • Loading branch information
shibingli committed Feb 27, 2017
1 parent f8e448d commit c32b1c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/apibox.club/website/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ func (s *ssh) Exec(cmd string) (string, error) {
}

func chkSSHSrvAddr(ssh_addr, key string) (string, string, error) {

if strings.Index(ssh_addr, "//") <= 0 {
ssh_addr = "//" + ssh_addr
}

u, err := url.Parse(ssh_addr)
if nil != err {
return "", "", err
Expand Down

0 comments on commit c32b1c0

Please sign in to comment.