summaryrefslogtreecommitdiff
path: root/windows/WinUI/APIHandler.cs
diff options
context:
space:
mode:
authorGrant Limberg <glimberg@gmail.com>2015-11-04 20:34:49 -0800
committerGrant Limberg <glimberg@gmail.com>2015-11-04 20:34:49 -0800
commit86c74d8a65ae45d6ff0433da7d4d4acb6cba8fcb (patch)
treeaaa63e4fba3a2fa86803721753e8903d0957a910 /windows/WinUI/APIHandler.cs
parent49086e4556bbe0c31abb8d4e640d854859430d49 (diff)
downloadinfinitytier-86c74d8a65ae45d6ff0433da7d4d4acb6cba8fcb.tar.gz
infinitytier-86c74d8a65ae45d6ff0433da7d4d4acb6cba8fcb.zip
set manifest to require administrator privileges and read the authtoken and port from disk
Diffstat (limited to 'windows/WinUI/APIHandler.cs')
-rw-r--r--windows/WinUI/APIHandler.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/windows/WinUI/APIHandler.cs b/windows/WinUI/APIHandler.cs
index 2968c963..92b83021 100644
--- a/windows/WinUI/APIHandler.cs
+++ b/windows/WinUI/APIHandler.cs
@@ -14,7 +14,7 @@ namespace WinUI
public class APIHandler
{
- static string authtoken = "p3ptrzds5jkr2hbx5ipbyf04"; // delete me!
+ private string authtoken;
private string url = null;
@@ -23,9 +23,10 @@ namespace WinUI
url = "http://127.0.0.1:9993";
}
- public APIHandler(string host, int port)
+ public APIHandler(int port, string authtoken)
{
- url = "http://" + host + ":" + port;
+ url = "http://localhost:" + port;
+ this.authtoken = authtoken;
}
public ZeroTierStatus GetStatus()