NameSilo API 密钥使用环境变量或者 -k 指定

This commit is contained in:
2025-02-18 14:16:13 +08:00
parent 538254f1ba
commit a3f44b6548
8 changed files with 178 additions and 18 deletions

View File

@@ -1,7 +1,6 @@
package main
import (
"fmt"
"log"
"os"
"os/exec"
@@ -43,7 +42,7 @@ func Daemon() {
}
// 输出提示信息(调试用,正式版可删除)
fmt.Println("新实例已启动,当前进程将退出")
log.Println("新实例已启动,当前进程将退出")
// 退出父进程,让子进程继续运行
// 注意:此时子进程的父进程变为 init 进程PID 1