naggie / dsnet

FAST command to manage a centralised wireguard VPN. Think wg-quick but quicker: key generation + address allocation.

Home Page:https://calbryant.uk/blog/how-to-set-up-a-wireguard-vpn-in-minutes-with-dsnet/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Peer name validation to RFC 1123

frillip opened this issue · comments

Peer names should be validated to RFC 1123, as these should be considered hostnames.

Suggest that characters that are not [a-zA-Z0-9\-\.] be either removed entirely or replaced with -, and anything over 63 characters be truncated, and dsnet prompt to confirm the modified name (as default by pressing enter) or user to enter a new one.