From c4b6b7892dad71a54bbe544ee8834956a357ff3f Mon Sep 17 00:00:00 2001 From: russell Date: Tue, 23 Jan 2007 21:52:52 +0000 Subject: Fix setting the default port of 8088 on 64-bit or big-endian machines. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@51755 f38db490-d61c-443f-a65b-d21fe96a405b --- main/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/http.c') diff --git a/main/http.c b/main/http.c index 67341e8a7..ce6a690e5 100644 --- a/main/http.c +++ b/main/http.c @@ -632,7 +632,7 @@ static int __ast_http_load(int reload) char newprefix[MAX_PREFIX]; memset(&sin, 0, sizeof(sin)); - sin.sin_port = 8088; + sin.sin_port = htons(8088); strcpy(newprefix, DEFAULT_PREFIX); cfg = ast_config_load("http.conf"); if (cfg) { -- cgit v1.2.3