summaryrefslogtreecommitdiff
path: root/src/hash.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2016-06-05 14:16:36 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2019-07-21 20:59:35 +0100
commit3c34fbcc87e3cb58d27cd104a84143c8d3cb3564 (patch)
tree950d783835d732ccf563bd29bba4bd1a68348026 /src/hash.c
parent83edbefbaabb2b17c84ac803131dc1a549da6964 (diff)
Add ^ support for SSL connections
Diffstat (limited to 'src/hash.c')
-rw-r--r--src/hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hash.c b/src/hash.c
index 48a20e2..4c8d820 100644
--- a/src/hash.c
+++ b/src/hash.c
@@ -569,7 +569,7 @@ add_user_host(const char *user, const char *host, int global)
struct NameHost *nameh;
int hasident = 1;
- if (*user == '~')
+ if (*user == '~' || *user == '^')
{
hasident = 0;
++user;
@@ -629,7 +629,7 @@ delete_user_host(const char *user, const char *host, int global)
struct NameHost *nameh;
int hasident = 1;
- if (*user == '~')
+ if (*user == '~' || *user == '^')
{
hasident = 0;
++user;