HomePhabricator

rpc: Use netmasks instead of wildcards for IP address matching
ee2191251027Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

rpc: Use netmasks instead of wildcards for IP address matching

-rpcallowip currently has a wacky wildcard-based format. After this
commit it will accept the more standard format, for example:

  • Ranges with netmask 127.0.0.0/255.255.255.0, ::/0
  • Ranges with cidr 12.3.4.5/24, 12:34:56:78:9a:bc:de:00/112
  • Loose IPs ::1, 127.0.0.1

Trying to use the old *?-based format will result in an error message at
launch.

Details

Provenance
Wladimir J. van der Laan <laanwj@gmail.com>Authored on Apr 28 2014, 11:48
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGINGe16be73753d8: net: Add CSubNet class for subnet matching
Branches
Unknown
Tags
Unknown

Event Timeline

Wladimir J. van der Laan <laanwj@gmail.com> committed rSTAGINGee2191251027: rpc: Use netmasks instead of wildcards for IP address matching (authored by Wladimir J. van der Laan <laanwj@gmail.com>).May 9 2014, 14:45