Update logs.

This commit is contained in:
Amin.MasterkinG
2026-04-20 14:10:10 +03:30
parent cddd7bbd54
commit 95f9fb7470
3 changed files with 7 additions and 1 deletions
+4
View File
@@ -22,12 +22,14 @@ type Config struct {
SOCKSAuth bool
SOCKSUsername string
SOCKSPassword string
LogLevel string
}
func Load(path string) (Config, error) {
cfg := Config{
SOCKSHost: "127.0.0.1",
SOCKSPort: 1080,
LogLevel: "INFO",
}
file, err := os.Open(path)
@@ -72,6 +74,8 @@ func Load(path string) (Config, error) {
cfg.SOCKSUsername = trimString(value)
case "SOCKS_PASSWORD":
cfg.SOCKSPassword = trimString(value)
case "LOG_LEVEL":
cfg.LogLevel = trimString(value)
}
}