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 1cf1b92 commit c40ab94
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 c40ab94

Please sign in to comment.