]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blobdiff - src/allmydata/uri.py
wui/wapi: change the default port number from 8123 to 3456 to avoid conflict with...
[tahoe-lafs/tahoe-lafs.git] / src / allmydata / uri.py
index 1d09e62d0a1b1dba5e5c247e1a20be3350ebd965..0a67f44848d4d4bf768c8192486096083fdfe4df 100644 (file)
@@ -18,8 +18,8 @@ SEP='(?::|%3A)'
 NUMBER='([0-9]+)'
 
 # URIs (soon to be renamed "caps") are always allowed to come with a leading
-# 'http://127.0.0.1:8123/uri/' that will be ignored.
-OPTIONALHTTPLEAD=r'(?:https?://(?:127.0.0.1|localhost):8123/uri/)?'
+# 'http://127.0.0.1:(8123|3456)/uri/' that will be ignored.
+OPTIONALHTTPLEAD=r'(?:https?://(?:127.0.0.1|localhost):(?:8123|3456)/uri/)?'
 
 
 class _BaseURI:
@@ -36,7 +36,7 @@ class _BaseURI:
         else:
             return True
     def to_human_encoding(self):
-        return 'http://127.0.0.1:8123/uri/'+self.to_string()
+        return 'http://127.0.0.1:3456/uri/'+self.to_string()
 
     def get_storage_index(self):
         return self.storage_index