Nicolas Cannasse 18 年之前
父节点
当前提交
05e0037768
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      std/neko/net/ProxyDetect.hx

+ 6 - 2
std/neko/net/ProxyDetect.hx

@@ -47,8 +47,12 @@ class ProxyDetect {
 				port : Std.parseInt(r.matched(4)),
 			};
 		var r = ~/^([^:]+):([0-9]+)$/;
-		if( !r.match(settings) )
-			throw "Invalid settings '"+settings+"'";
+		if( !r.match(settings) ) {
+			var r2 = ~/http=([^:]+):([0-9]+)/;
+			if( !r2.match(settings) )
+				throw "Invalid settings '"+settings+"'";
+			r = r2;
+		}
 		return {
 			host : r.matched(1),
 			port : Std.parseInt(r.matched(2)),