Project

General

Profile

Actions

Bug #7565

closed

openvpn and port 0

Added by Jeremy C. Reed over 7 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
OpenVPN
Target version:
Start date:
05/20/2017
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
All
Affected Architecture:
All

Description

openvpn_validate_port() has:
if (empty($value ...

so when passing zero to it complains
(because empty(0) is FALSE):
"The field 'Local port' must contain a valid port, ranging from 0 to 65535"

While I would want it to check for not 0,
the above says zero is okay and the
vpn_openvpn_server.php addInput form for it allows it.

make fix in both places.

Actions

Also available in: Atom PDF