gui: Don't show auth warning when listening on UNIX socket (fixes #6040) (#6041)

This commit is contained in:
Lukas Lihotzki 2019-10-01 13:22:33 +02:00 committed by Jakob Borg
parent 757d9a5333
commit cff7a091f5

View File

@ -439,6 +439,7 @@ angular.module('syncthing.core')
var guiCfg = $scope.config.gui; var guiCfg = $scope.config.gui;
$scope.openNoAuth = addr.substr(0, 4) !== "127." $scope.openNoAuth = addr.substr(0, 4) !== "127."
&& addr.substr(0, 6) !== "[::1]:" && addr.substr(0, 6) !== "[::1]:"
&& addr.substr(0, 1) !== "/"
&& (!guiCfg.user || !guiCfg.password) && (!guiCfg.user || !guiCfg.password)
&& guiCfg.authMode !== 'ldap' && guiCfg.authMode !== 'ldap'
&& !guiCfg.insecureAdminAccess; && !guiCfg.insecureAdminAccess;