diff options
| author | Ilya Kryuchkov <42733472+kr-ilya@users.noreply.github.com> | 2026-01-05 07:54:56 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-05 07:54:56 +0300 |
| commit | 6041d10e3d5d8b0021dd596bdee8f0064a495f80 (patch) | |
| tree | 897ac55d8389dfea859e6071d08c56f97e843a09 /web/service/server.go | |
| parent | 4800f8fb706a092a38255ee70904227238b2a6f6 (diff) | |
Refactor code and fix linter warnings (#3627)
* refactor: use any instead of empty interface
* refactor: code cleanup
Diffstat (limited to 'web/service/server.go')
| -rw-r--r-- | web/service/server.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/service/server.go b/web/service/server.go index 970c5c0f..49f13b91 100644 --- a/web/service/server.go +++ b/web/service/server.go @@ -1205,7 +1205,7 @@ func (s *ServerService) GetNewmldsa65() (any, error) { return keyPair, nil } -func (s *ServerService) GetNewEchCert(sni string) (interface{}, error) { +func (s *ServerService) GetNewEchCert(sni string) (any, error) { // Run the command cmd := exec.Command(xray.GetBinaryPath(), "tls", "ech", "--serverName", sni) var out bytes.Buffer @@ -1223,7 +1223,7 @@ func (s *ServerService) GetNewEchCert(sni string) (interface{}, error) { configList := lines[1] serverKeys := lines[3] - return map[string]interface{}{ + return map[string]any{ "echServerKeys": serverKeys, "echConfigList": configList, }, nil |
