comment explaining proxified-container.js:parseProxy
This commit is contained in:
@@ -126,6 +126,8 @@ proxifiedContainers = {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
//Parses a proxy description string of the format host[:port] or username:password@[host:port] (port is optional)
|
||||||
parseProxy(proxy_str) {
|
parseProxy(proxy_str) {
|
||||||
const regexp = /(\b(\w+):(\w+)@)?(((?:\d{1,3}\.){3}\d{1,3}\b)|(\b(\w+)(\.(\w+))+))(:(\d+))?/;
|
const regexp = /(\b(\w+):(\w+)@)?(((?:\d{1,3}\.){3}\d{1,3}\b)|(\b(\w+)(\.(\w+))+))(:(\d+))?/;
|
||||||
if (regexp.test(proxy_str) !== true)
|
if (regexp.test(proxy_str) !== true)
|
||||||
|
|||||||
Reference in New Issue
Block a user