Browse files

remove explicit port-mapping shit from m3u generation

  • Loading branch information...
1 parent a4d0c88 commit 4c15e07b04cc29159920b8a3b650534dcfd26635 @atmos committed Nov 13, 2012
Showing with 5 additions and 6 deletions.
  1. +1 −2 src/admin.c
  2. +2 −2 src/fserve.c
  3. +2 −2 src/source.c
View
3 src/admin.c
@@ -703,11 +703,10 @@ static void command_buildm3u(client_t *client, const char *mount)
"HTTP/1.0 200 OK\r\n"
"Content-Type: audio/x-mpegurl\r\n"
"Content-Disposition = attachment; filename=listen.m3u\r\n\r\n"
- "http://%s:%s@%s:%d%s\r\n",
+ "http://%s:%s@%s%s\r\n",
username,
password,
config->hostname,
- config->port,
mount
);
config_release_config();
View
4 src/fserve.c
@@ -460,8 +460,8 @@ int fserve_client_create (client_t *httpclient, const char *path)
snprintf (httpclient->refbuf->data, BUFSIZE,
"HTTP/1.0 200 OK\r\n"
"Content-Type: audio/x-mpegurl\r\n\r\n"
- "http://%s:%d%s\r\n",
- config->hostname, config->port,
+ "http://%s%s\r\n",
+ config->hostname,
sourceuri
);
config_release_config();
View
4 src/source.c
@@ -593,8 +593,8 @@ static void source_init (source_t *source)
listenurl = malloc (listen_url_size);
memset (listenurl, '\000', listen_url_size);
- snprintf (listenurl, listen_url_size, "http://%s:%d%s",
- config->hostname, config->port, source->mount);
+ snprintf (listenurl, listen_url_size, "http://%s%s",
+ config->hostname, source->mount);
config_release_config();
str = httpp_getvar(source->parser, "ice-audio-info");

0 comments on commit 4c15e07

Please sign in to comment.