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>2016-06-05 17:47:56 +0100
commit52f2f768af8fbc251924c510eecb87f16b6af5bb (patch)
treee5d85ce2167845981b9ec15dafaad39fa0717f53 /src/hash.c
parentbdc20e81e628a5d630f649b2d01fcfc795ca39ea (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;