Commit Graph

4 Commits

Author SHA1 Message Date
mhameed 37e9e8c2a3 __ipset: do not make use of grep -P flag as it is marked as experimental 2021-01-09 12:54:36 +00:00
mhameed 49f62f0965 __ipset: gencode-remote dont use bash, use sh 2021-01-09 10:24:33 +00:00
mhameed e5099d32f3 __ipset: ignore ipset errors when non-existing item is removed, or item is added twice.
We might choose to include human readable hostnames, rather than ip addresses.
In these cases, we are unable to correctly detect membership, but ipset will resolve and error on duplicate.

the sets contain ip addresses and not resolvable names, gencode-remote will produce output, but ipset will eventually resolve to ip
addresses/check for real membership.

For example:

    __ipset good-sites --type hash:ip --add cdi.st

or:

    __ipset blocked-sites --type hash:ip --del cdi.st
2021-01-09 09:34:01 +00:00
mhameed c43bd0eed5 Add new type: __ipset 2021-01-06 15:40:23 +00:00