diff options
author | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2014-08-17 20:16:27 -0400 |
---|---|---|
committer | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2014-08-17 22:51:45 -0400 |
commit | fb2de3c4d1372965f5bf4aa9037b9b629852dbe3 (patch) | |
tree | e5a35666466f11090816a9e94186d4b4deaa54ef /ffserver.c | |
parent | 1013d8dd6967f1e776c08dc133ed6ae44ca3dc64 (diff) | |
download | ffmpeg-fb2de3c4d1372965f5bf4aa9037b9b629852dbe3.tar.gz |
ffserver: warn if config uses a system port
Should be harmless as far as users know what they are doing
but an informative warning wont hurt. For details, refer to
http://tools.ietf.org/html/rfc6335
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Diffstat (limited to 'ffserver.c')
-rw-r--r-- | ffserver.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ffserver.c b/ffserver.c index 57ebfeb3c5..c1c8530a3e 100644 --- a/ffserver.c +++ b/ffserver.c @@ -4089,6 +4089,8 @@ static int parse_ffconfig(const char *filename) if (val < 1 || val > 65536) { ERROR("Invalid port: %s\n", arg); } + if (val < 1024) + WARNING("Trying to use IETF assigned system port: %d\n", val); my_http_addr.sin_port = htons(val); } else if (!av_strcasecmp(cmd, "HTTPBindAddress") || !av_strcasecmp(cmd, "BindAddress")) { if (!av_strcasecmp(cmd, "BindAddress")) |