summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2016-12-02 19:21:11 +0100
committerAzul <azul@riseup.net>2016-12-02 19:21:11 +0100
commitafdfd541dedf77c0cb2dba62edd364e7b145d1b5 (patch)
treecccc275608d430c6c3a51ae86f7f2c53bf8a7070 /lib
parent8bfd27e0c851e9786110be4e6485635f769d853f (diff)
bugfix: remote nicknym is on port 6425
We may use a different port in the config that is then mapped somehow. But this should not affect where we try to contact remote nicknym servers.
Diffstat (limited to 'lib')
-rw-r--r--lib/nickserver/nicknym/source.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/nickserver/nicknym/source.rb b/lib/nickserver/nicknym/source.rb
index 45daeaf..96945cb 100644
--- a/lib/nickserver/nicknym/source.rb
+++ b/lib/nickserver/nicknym/source.rb
@@ -4,6 +4,8 @@ require 'nickserver/response'
module Nickserver
module Nicknym
class Source < Nickserver::Source
+ # port we expect the remote nicknym to listen on
+ PORT = 6425
def available_for?(domain)
status, body = adapter.get "https://#{domain}/provider.json"
@@ -18,7 +20,7 @@ module Nickserver
protected
def nicknym_get(domain, query = {})
- url = "https://nicknym.#{domain}:#{Config.port}"
+ url = "https://nicknym.#{domain}:#{PORT}"
adapter.get(url, query: query)
end