From b2b550d47a2f07e2b3bcffa4ad31470ab34f3627 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Mon, 26 Dec 2016 16:55:49 +0100 Subject: Move everything to /ss namespace --- client.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'client.js') diff --git a/client.js b/client.js index 606a331..5108a6b 100755 --- a/client.js +++ b/client.js @@ -8,7 +8,7 @@ var fs=require("fs"), kbd=require("kbd"), toClipboard=require("to-clipboard"); -var HOSTNAME=process.argv[2]||"tomsmeding.com",HTTPPORT=42420; +var HOSTNAME=process.argv[2]||"tomsmeding.com",HTTPPORT=80; console.log("Using server "+HOSTNAME); @@ -126,7 +126,7 @@ function getchallenge(cb){ var req=http.request({ hostname:HOSTNAME, port:HTTPPORT, - path:"/challenge", + path:"/ss/challenge", method:"GET", keepAlive:true //speed up the next request },function(res){ @@ -158,7 +158,7 @@ function sendfile(fname,retries){ var req=http.request({ hostname:HOSTNAME, port:HTTPPORT, - path:"/image/"+userid+"/"+authhash(challenge,password)+"/"+escape(barefname), + path:"/ss/image/"+userid+"/"+authhash(challenge,password)+"/"+escape(barefname), method:"POST", headers:{ "Content-Type":"image/png" @@ -197,7 +197,7 @@ function userExists(userid,cb){ var req=http.request({ hostname:HOSTNAME, port:HTTPPORT, - path:"/exists/"+userid, + path:"/ss/exists/"+userid, method:"GET" },function(res){ if(res.statusCode==200)cb(true); @@ -218,7 +218,7 @@ function checkLogin(userid,password,cb,retries){ var req=http.request({ hostname:HOSTNAME, port:HTTPPORT, - path:"/checklogin/"+userid+"/"+authhash(challenge,password), + path:"/ss/checklogin/"+userid+"/"+authhash(challenge,password), method:"GET" },function(res){ if(res.statusCode==200)cb(true); @@ -240,7 +240,7 @@ function registerUser(userid,password){ var req=http.request({ hostname:HOSTNAME, port:HTTPPORT, - path:"/registerx/"+userid, + path:"/ss/registerx/"+userid, method:"POST", headers:{ "Content-Type":"text/plain" -- cgit v1.2.3-70-g09d2