mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
Kill unnecessary check in another spot.
This commit is contained in:
parent
b6c99ba3ef
commit
4ad942522b
1 changed files with 0 additions and 3 deletions
|
@ -270,9 +270,6 @@ unsigned int ControlPlane::handleRequest(
|
||||||
std::map<std::string,std::string> urlArgs;
|
std::map<std::string,std::string> urlArgs;
|
||||||
Mutex::Lock _l(_lock);
|
Mutex::Lock _l(_lock);
|
||||||
|
|
||||||
if (!((fromAddress.ipsEqual(InetAddress::LO4))||(fromAddress.ipsEqual(InetAddress::LO6))))
|
|
||||||
return 403; // Forbidden: we only allow access from localhost right now
|
|
||||||
|
|
||||||
/* Note: this is kind of restricted in what it'll take. It does not support
|
/* Note: this is kind of restricted in what it'll take. It does not support
|
||||||
* URL encoding, and /'s in URL args will screw it up. But the only URL args
|
* URL encoding, and /'s in URL args will screw it up. But the only URL args
|
||||||
* it really uses in ?jsonp=funcionName, and otherwise it just takes simple
|
* it really uses in ?jsonp=funcionName, and otherwise it just takes simple
|
||||||
|
|
Loading…
Add table
Reference in a new issue