[FIX] Respect protocol in HTTP Auth IPs (#1933)

Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
Neil Agarwal 2020-03-26 18:50:41 +05:30 committed by GitHub
parent da05843089
commit dbd70deee4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ class NewServerView extends React.Component {
completeUrl = (url) => {
const parsedUrl = parse(url, true);
if (parsedUrl.auth.length) {
url = parsedUrl.host;
url = parsedUrl.origin;
}
url = url && url.replace(/\s/g, '');