summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2023-03-01 15:13:59 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2023-03-01 15:13:59 +0100
commit15a28e7d954c025363f14ab97c4367ad5de5af20 (patch)
tree7ab43eb44e386563d5013ad1387218c92018389c /client
parent2001884c50d8b4a33a45ff6bc8eeb8cfb1feea7f (diff)
Client: Allow max version to be 20 characters
Bit long maybe but we shouldn't limit it too much
Diffstat (limited to 'client')
-rw-r--r--client/client.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/client.go b/client/client.go
index 0dad8c8..2bb0cc2 100644
--- a/client/client.go
+++ b/client/client.go
@@ -147,8 +147,8 @@ func (c *Client) Register(
return errors.Errorf("client ID is not allowed: '%v', see https://git.sr.ht/~fkooman/vpn-user-portal/tree/v3/item/src/OAuth/VpnClientDb.php for a list of allowed IDs", name)
}
- if len([]rune(version)) > 10 {
- return errors.Errorf("version is not allowed: '%s', must be max 10 characters", version)
+ if len([]rune(version)) > 20 {
+ return errors.Errorf("version is not allowed: '%s', must be max 20 characters", version)
}
http.RegisterAgent(userAgentName(name), version)