mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2025-06-15 07:26:05 +00:00
Make yggdrasilctl less case-sensitive
This commit is contained in:
@ -309,7 +309,7 @@ func (a *admin) handleRequest(conn net.Conn) {
|
||||
handlers:
|
||||
for _, handler := range a.handlers {
|
||||
// We've found the handler that matches the request
|
||||
if recv["request"] == handler.name {
|
||||
if strings.ToLower(recv["request"].(string)) == strings.ToLower(handler.name) {
|
||||
// Check that we have all the required arguments
|
||||
for _, arg := range handler.args {
|
||||
// An argument in [square brackets] is optional and not required,
|
||||
|
Reference in New Issue
Block a user