diff options
Diffstat (limited to 'interface-definitions/interfaces-wireguard.xml.in')
-rw-r--r-- | interface-definitions/interfaces-wireguard.xml.in | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/interface-definitions/interfaces-wireguard.xml.in b/interface-definitions/interfaces-wireguard.xml.in index d461156b3..d3f084774 100644 --- a/interface-definitions/interfaces-wireguard.xml.in +++ b/interface-definitions/interfaces-wireguard.xml.in @@ -21,9 +21,13 @@ #include <include/interface-disable.xml.i> <leafNode name="port"> <properties> - <help>Local port number to accept connections</help> + <help>Local port to listen for incoming connections</help> + <valueHelp> + <format>1-65535</format> + <description>Numeric IP port</description> + </valueHelp> <constraint> - <validator name="numeric" argument="--range 1024-65535"/> + <validator name="numeric" argument="--range 1-65535"/> </constraint> </properties> </leafNode> @@ -97,10 +101,28 @@ <multi/> </properties> </leafNode> - <!-- eventually check format IP:port --> - <leafNode name="endpoint"> + <leafNode name="address"> + <properties> + <help>IP address of tunnel remote end</help> + <valueHelp> + <format>ipv4</format> + <description>IP address to listen for incoming connections</description> + </valueHelp> + <constraint> + <validator name="ipv4-address"/> + </constraint> + </properties> + </leafNode> + <leafNode name="port"> <properties> - <help>Remote endpoint (IP:port)</help> + <help>Port number on tunnel remote end</help> + <valueHelp> + <format>1-65535</format> + <description>Numeric IP port</description> + </valueHelp> + <constraint> + <validator name="numeric" argument="--range 1-65535"/> + </constraint> </properties> </leafNode> <leafNode name="persistent-keepalive"> |