diff options
author | Liong Sauw Ming <ming@teluu.com> | 2013-05-31 13:40:18 +0000 |
---|---|---|
committer | Liong Sauw Ming <ming@teluu.com> | 2013-05-31 13:40:18 +0000 |
commit | 559c514e8a749d5644edcb301eab03edbc268e5e (patch) | |
tree | a41caef64c9bb4ccc8a46dfd0816e2bad244798e /pjsip | |
parent | 0bb1e209706fcd5aade892fb38a2a90a9be8185f (diff) |
Re #1630 (misc): Fixed private ip detection in pjsua_acc
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4531 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip')
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_acc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_acc.c b/pjsip/src/pjsua-lib/pjsua_acc.c index f9230def..5798a466 100644 --- a/pjsip/src/pjsua-lib/pjsua_acc.c +++ b/pjsip/src/pjsua-lib/pjsua_acc.c @@ -1391,7 +1391,10 @@ static pj_bool_t is_private_ip(const pj_str_t *addr) { { "10.", 3 }, { "127.", 4 }, - { "172.16.", 7 }, + { "172.16.", 7 }, { "172.17.", 7 }, { "172.18.", 7 }, { "172.19.", 7 }, + { "172.20.", 7 }, { "172.21.", 7 }, { "172.22.", 7 }, { "172.23.", 7 }, + { "172.24.", 7 }, { "172.25.", 7 }, { "172.26.", 7 }, { "172.27.", 7 }, + { "172.28.", 7 }, { "172.29.", 7 }, { "172.30.", 7 }, { "172.31.", 7 }, { "192.168.", 8 } }; unsigned i; |