aboutsummaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-06-29 15:01:16 +0000
committerOmar Polo <op@omarpolo.com>2023-06-29 15:01:16 +0000
commit911156fb95c43b9aa3c4cec8f9e40317ae7e0807 (patch)
tree47c0a6d8f829d58bf2c3b677b2858a49e6f4f33f /parse.y
parentc9e878d6a40f4b509bb8928e4736a63f8b7723a2 (diff)
make `listen on' defaults on port 1965
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y3
1 files changed, 3 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 9e636ae..a06416d 100644
--- a/parse.y
+++ b/parse.y
@@ -328,6 +328,9 @@ servopt : ALIAS string {
| PARAM string '=' string {
add_param($2, $4);
}
+ | LISTEN ON listen_addr {
+ listen_on($3, "1965");
+ }
| LISTEN ON listen_addr PORT STRING {
listen_on($3, $5);
free($3);