mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
VPN: WireGuard / Peer generator - pass endpoint to validator using a volatile field.
When the endpoint is invalid, the ios/android app will fail without mentioning a cause. Let's prevent obvious issues from happening.
This commit is contained in:
parent
030ed198a7
commit
3f6b9ec4f9
@ -48,6 +48,9 @@
|
||||
</check001>
|
||||
</Constraints>
|
||||
</serverport>
|
||||
<endpoint type="IPPortField" volatile="true">
|
||||
<ValidationMessage>Please specify a valid host:port combination.</ValidationMessage>
|
||||
</endpoint>
|
||||
<keepalive type="IntegerField">
|
||||
<MinimumValue>1</MinimumValue>
|
||||
<MaximumValue>86400</MaximumValue>
|
||||
|
||||
@ -167,6 +167,7 @@
|
||||
tunneladdress: $("#configbuilder\\.address").val(),
|
||||
keepalive: $("#configbuilder\\.keepalive").val(),
|
||||
server: instance_id,
|
||||
endpoint: endpoint.val()
|
||||
}
|
||||
};
|
||||
ajaxCall('/api/wireguard/client/addClientBuilder', peer, function(data, status) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user