diff --git a/internal/web/service/client_inbound_apply.go b/internal/web/service/client_inbound_apply.go index 28055a405..a67a49eb1 100644 --- a/internal/web/service/client_inbound_apply.go +++ b/internal/web/service/client_inbound_apply.go @@ -441,6 +441,10 @@ func (s *ClientService) addInboundClient(inboundSvc *InboundService, data *model if client.PublicKey == "" { return false, common.NewError("wireguard client requires a key") } + case "amneziawg": + if client.PublicKey == "" { + return false, common.NewError("amneziawg client requires a key") + } case "mtproto": if client.Secret == "" { return false, common.NewError("mtproto client requires a secret") @@ -622,6 +626,8 @@ func (s *ClientService) UpdateInboundClient(inboundSvc *InboundService, data *mo newClientId = clients[0].Auth case "wireguard": newClientId = clients[0].Email + case "amneziawg": + newClientId = clients[0].Email case "mtproto": newClientId = clients[0].Email default: