Files
xk-hy-forward-go/internal/forward/config.go
2026-05-22 08:42:27 +08:00

19 lines
331 B
Go

package forward
import (
"os"
"strings"
)
const (
DefaultSuperviseTarget = "https://59.202.52.129:28212/province/supervise/data"
DefaultFileTarget = "https://59.202.52.129:28211/mng/file/auth/upload"
)
func env(key, def string) string {
if v := strings.TrimSpace(os.Getenv(key)); v != "" {
return v
}
return def
}