summaryrefslogtreecommitdiff
path: root/lib/nickserver
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nickserver')
-rw-r--r--lib/nickserver/request_handler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nickserver/request_handler.rb b/lib/nickserver/request_handler.rb
index a54653a..f6954f1 100644
--- a/lib/nickserver/request_handler.rb
+++ b/lib/nickserver/request_handler.rb
@@ -61,7 +61,7 @@ module Nickserver
if host_header.nil?
send_error("HTTP request must include a Host header.")
else
- host = host_header.split(':')[1].strip.sub(/^nicknym\./, '')
+ host = host_header.split(':')[0].strip.sub(/^nicknym\./, '')
return uid_domain == host
end
end