Skip to content

Commit

Permalink
[dispatcher] accept socket defintion with TAG also
Browse files Browse the repository at this point in the history
Update the regexp to allow TAG instead of IP in the socket definition

(cherry picked from commit cf90fb4)
  • Loading branch information
bogdan-iancu committed Feb 7, 2025
1 parent 3f5e178 commit 1cfde20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/common/forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,6 @@ function get_combo_options($combo)

$re_ip = "([0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3})";

$re_socket = "^([a-zA-Z]+:)?([0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3})(:[0-9]+)?$";
$re_socket = "^([a-zA-Z]+:)?(([0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3})|([0-9A-Za-z_])+)(:[0-9]+)?$";

?>

0 comments on commit 1cfde20

Please sign in to comment.