Browse Source

merge master

刘河 5 years ago
parent
commit
c062cc414a
3 changed files with 5 additions and 2 deletions
  1. 1 0
      bridge/bridge.go
  2. 3 1
      lib/config/config.go
  3. 1 1
      lib/version/version.go

+ 1 - 0
bridge/bridge.go

@@ -473,6 +473,7 @@ loop:
 						tl.Remark = t.Remark
 					} else {
 						tl.Remark = t.Remark + "_" + strconv.Itoa(tl.Port)
+						tl.Target = new(file.Target)
 						if t.TargetAddr != "" {
 							tl.Target.TargetStr = t.TargetAddr + ":" + strconv.Itoa(targets[i])
 						} else {

+ 3 - 1
lib/config/config.go

@@ -227,8 +227,10 @@ func dealTunnel(s string) *file.Tunnel {
 			t.ServerIp = item[1]
 		case "mode":
 			t.Mode = item[1]
-		case "target_port", "target_addr":
+		case "target_addr":
 			t.Target.TargetStr = strings.Replace(item[1], ",", "\n", -1)
+		case "target_port":
+			t.Target.TargetStr = item[1]
 		case "target_ip":
 			t.TargetAddr = item[1]
 		case "password":

+ 1 - 1
lib/version/version.go

@@ -1,6 +1,6 @@
 package version
 
-const VERSION = "0.23.1"
+const VERSION = "0.23.2"
 
 // Compulsory minimum version, Minimum downward compatibility to this version
 func GetVersion() string {