Skip to content

Commit 1cfde20

Browse files
committed
[dispatcher] accept socket defintion with TAG also
Update the regexp to allow TAG instead of IP in the socket definition (cherry picked from commit cf90fb4)
1 parent 3f5e178 commit 1cfde20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/common/forms.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,6 @@ function get_combo_options($combo)
505505

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

508-
$re_socket = "^([a-zA-Z]+:)?([0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3})(:[0-9]+)?$";
508+
$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]+)?$";
509509

510510
?>

0 commit comments

Comments
 (0)