Update IP glob matching to work more accurately with IPv6.
authorMichael Poole <mdpoole@troilus.org>
Mon, 22 Nov 2010 12:33:45 +0000 (07:33 -0500)
committerMichael Poole <mdpoole@troilus.org>
Mon, 22 Nov 2010 12:33:45 +0000 (07:33 -0500)
commitc1b89eba62707ffc6f6daf8e818036dec3dfbc2a
tree67f0f40b07ad2aac5a3b978f4059d2880870016f
parent5808de1e3e2db867ac9138a971d1d7e6b5ca5015
Update IP glob matching to work more accurately with IPv6.

When given an IP like 2001::1234:5678:1:2:3:4, srvx (properly) makes
a glob like 2001:0:4137:*.  However, it wouldn't realize that the
glob actually matches the IP, because it used string glob matching.

src/tools.c (user_matches_glob): Use a parsed glob to match against
  the user's IP address.
src/tools.c