Skip to content

Commit

Permalink
update 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
linimbus committed Apr 20, 2023
1 parent f99d1ff commit 44cfa6f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
12 changes: 0 additions & 12 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package main
import (
"flag"
"fmt"
"net"
"net/http"
"net/url"
"os"
Expand Down Expand Up @@ -97,17 +96,6 @@ func LocalAccessInit(scheme string, address string, auth *engin.AuthInfo) (engin
}

func RemoteForwardInit(scheme string, address string, auth *engin.AuthInfo) (engin.Forward, error) {
if net.ParseIP(address) == nil {
addr, err := net.ResolveTCPAddr("tcp", address)
if err != nil {
return nil, err
}
logs.Info("resolve %s to %s", address, addr.String())
address = addr.String()
}
if false == engin.IsConnect(address, Timeout) {
return nil, fmt.Errorf("connect %s fail", address)
}
var tlsEnable bool
if scheme == "https" {
tlsEnable = true
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ func init() {
}

func VersionGet() string {
return "v1.6.0"
return "v1.6.1"
}

0 comments on commit 44cfa6f

Please sign in to comment.