set manifest to require administrator privileges and read the authtoken and port from disk

This commit is contained in:
Grant Limberg 2015-11-04 20:34:49 -08:00
parent 49086e4556
commit 86c74d8a65
4 changed files with 118 additions and 16 deletions

View file

@ -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()