|
@@ -4,6 +4,15 @@
|
|
|
|
|
|
package ganserv
|
|
package ganserv
|
|
|
|
|
|
|
|
+import (
|
|
|
|
+ "os/exec"
|
|
|
|
+ "os/user"
|
|
|
|
+ "path/filepath"
|
|
|
|
+ "strings"
|
|
|
|
+
|
|
|
|
+ "imuslab.com/zoraxy/mod/utils"
|
|
|
|
+)
|
|
|
|
+
|
|
func readAuthTokenAsAdmin() (string, error) {
|
|
func readAuthTokenAsAdmin() (string, error) {
|
|
if utils.FileExists("./authtoken.secret") {
|
|
if utils.FileExists("./authtoken.secret") {
|
|
authKey, err := os.ReadFile("./authtoken.secret")
|
|
authKey, err := os.ReadFile("./authtoken.secret")
|