Nicolas Cannasse 18 years ago
parent
commit
05e0037768
1 changed files with 6 additions and 2 deletions
  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)),