[FIX] Respect protocol in HTTP Auth IPs (#1933)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
da05843089
commit
dbd70deee4
|
@ -198,7 +198,7 @@ class NewServerView extends React.Component {
|
||||||
completeUrl = (url) => {
|
completeUrl = (url) => {
|
||||||
const parsedUrl = parse(url, true);
|
const parsedUrl = parse(url, true);
|
||||||
if (parsedUrl.auth.length) {
|
if (parsedUrl.auth.length) {
|
||||||
url = parsedUrl.host;
|
url = parsedUrl.origin;
|
||||||
}
|
}
|
||||||
|
|
||||||
url = url && url.replace(/\s/g, '');
|
url = url && url.replace(/\s/g, '');
|
||||||
|
|
Loading…
Reference in New Issue