[asterisk-dev] httpd bind port changed to 8080 in 1.8 [was: Re: [svn-commits] mmichelson: branch 1.8 r353770 - in /branches/1.8: ./ configs/ include/asteri...]
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Wed May 16 10:20:32 CDT 2012
Hi,
It seems that the httpd listens by default on port 8080 in 1.8 (not on
10 and trunk):
On Thu, Feb 02, 2012 at 04:58:50PM -0000, SVN commits to the Digium repositories wrote:
> Author: mmichelson
> Date: Thu Feb 2 10:58:44 2012
> New Revision: 353770
>
> URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=353770
> Log:
> Fix TLS port binding behavior as well as reload behavior:
[snip]
> Review: https://reviewboard.asterisk.org/r/1709
[snip]
> Modified: branches/1.8/main/http.c
> URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/http.c?view=diff&rev=353770&r1=353769&r2=353770
> ==============================================================================
> --- branches/1.8/main/http.c (original)
> +++ branches/1.8/main/http.c Thu Feb 2 10:58:44 2012
> @@ -60,6 +60,9 @@
>
> #define MAX_PREFIX 80
> #define DEFAULT_SESSION_LIMIT 100
> +
> +#define DEFAULT_HTTP_PORT 8080
> +#define DEFAULT_HTTPS_PORT 8089
New default: 8080
[snip]
> tmp.sin_family = AF_INET;
> - tmp.sin_port = htons(8088);
> + tmp.sin_port = htons(DEFAULT_HTTP_PORT);
> ast_sockaddr_from_sin(&http_desc.local_address, &tmp);
Old default was 8088.
Luckily the incorrect definition above of DEFAULT_HTTP_PORT was not
preserved when the patch was forward-ported to 10 and trunk, as it was
already defined from the IPv6 support.
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
More information about the asterisk-dev
mailing list