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
  • Loading branch information
bogdan-iancu committed Feb 7, 2025
1 parent 690eab8 commit cf90fb4
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 @@ -579,6 +579,6 @@ function form_generate_hidden($id,$val) {

$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 cf90fb4

Please sign in to comment.