commit - c9e878d6a40f4b509bb8928e4736a63f8b7723a2
commit + 911156fb95c43b9aa3c4cec8f9e40317ae7e0807
blob - f76e6d3fe167fe3ab6ddd1a0c4da870a754c8924
blob + 07e58e099c17b03f7fbada0f29b418c6a007a9b1
--- gmid.conf.5
+++ gmid.conf.5
If not specified, no
.Dq lang
parameter will be added in the response.
-.It Ic listen on Ar address Ic port Ar number
-Set the listen address and port.
+.It Ic listen on Ar address Op Ic port Ar number
+Set the listen
+.Ar address
+and
+.Ar port
+which defaults to
+.Sq 1965 .
This statement can be specified multiple times.
If
.Ar address
.Xr gmid 8
will listen on all IPv4 and IPv6 addresses.
.Ar 0.0.0.0
-means to listen on all IPv4 addresses and
+can be used to listen on all IPv4 addresses and
.Ar ::
-all IPv6 addresses.
+on all IPv6 addresses.
.It Ic location Ar path Brq ...
Specify server configuration rules for a specific location.
.Ar path
blob - 9e636ae4a9863ed1ff1a49d0fe4bbbcd1d4874c8
blob + a06416db3c9d5687f463004a7949698443c98bc5
--- parse.y
+++ parse.y
| 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);