Skip to content

Commit cf90fb4

Browse files
committed
[dispatcher] accept socket defintion with TAG also
Update the regexp to allow TAG instead of IP in the socket definition
1 parent 690eab8 commit cf90fb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: web/common/forms.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,6 @@ function form_generate_hidden($id,$val) {
579579

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

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

584584
?>

0 commit comments

Comments
 (0)