BUG: netcam with host and port does'nt works with proxy
if the netcam url is of the shape
http://host:port/path
and a proxy is declared it doesn't work.
I make a correction in netcam.c line 1831-1833
ptr = mymalloc(strlen(url->service) + strlen(url->host) + 6 /* space for port number */ + strlen(url->path) + 4);
sprintf((char *)ptr, "http://%s:%d%s", url->host, url->port , url->path);
in place of
ptr = mymalloc(strlen(url->service) + strlen(url->host) + strlen(url->path) + 4);
sprintf((char *)ptr, "http://%s%s", url->host, url->path);
and it works.
Environment
Motion version: |
3.2.12 |
ffmpeg version: |
|
Shared libraries: |
ffmpeg, mysql, postgresql |
Server OS: |
centos 5.7 |
--
GillesVautier - 11 Feb 2014
Follow up
Fix record