1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-04 10:24:41 +02:00

Refine subnet check and improve hint for defining subnet. 4th number is always 0 with a subnet.

This commit is contained in:
Dimitri Huisman 2023-10-29 16:47:35 +00:00
parent 67d11c47c8
commit e332a7de6a
No known key found for this signature in database

View File

@ -16,10 +16,11 @@ avoid generic all-interfaces addresses like <code>0.0.0.0</code> or <code>::</co
<div class="form-group">
<label>IPv4 listen address</label>
<!-- Validates IPv4 address -->
<input class="form-control" type="text" name="bind4" value="127.0.0.1"
<input class="form-control" type="text" name="bind4" value="127.0.0.1"
pattern="^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$">
<label>Subnet of the docker network. This should not conflict with any networks to which your system is connected. (Internal and external!)</label>
<input class="form-control" type="text" name="subnet" required pattern="^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))$"
<label>Subnet of the docker network. This should not conflict with any networks to which your system is connected. (Internal and external!)
Fourth number is always 0. Normally the format is '*.*.*.0/24'</label>
<input class="form-control" type="text" name="subnet" required pattern="^([0-9]{1,3}\.){3}[0](\/([0-9]|[1-2][0-9]|3[0-2]))$"
value="192.168.203.0/24">
</div>