From ed0fa7ff1f6357d8a9de0c8f29ab76b4e80e8e55 Mon Sep 17 00:00:00 2001 From: Alexander Ng Date: Fri, 12 Jan 2024 03:29:25 -0800 Subject: [PATCH] fix: export fields of struct credentials --- credentials.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/credentials.go b/credentials.go index 65cf8f9..03823be 100644 --- a/credentials.go +++ b/credentials.go @@ -7,8 +7,8 @@ import ( ) type credentials struct { - username string `json:"username"` - password string `json:"password"` + Username string `json:"username"` + Password string `json:"password"` } func parseCredentials(credsString string) (socks5.StaticCredentials, error) { @@ -20,7 +20,7 @@ func parseCredentials(credsString string) (socks5.StaticCredentials, error) { var credsMap socks5.StaticCredentials for _, cred := range creds { - credsMap[cred.username] = cred.password + credsMap[cred.Username] = cred.Password } return credsMap, nil