Webservices use wrong error code?

If webservices is called with the correct token (and activated) but from the wrong IP we should get an error ERR 106 webservice token not allowed from this IP address

but instead we got: {"status":"ERR","error":"600","error_string":"admin level authentication failed","timestamp":1617199478}

Also a couple of other things:

1 To allow any IP there is an "*" option in code, but I couldn’t find in the documentation.
If you actually use one “*” it doesn’t work. if you use "*.*.*.*" works, but is kind of weird.

2 What about ipv6?

I’ll check this.

anton

core_net_match() is used to match current visitor IP address with webservices IP:

To allow many IP you can use subnet

anton

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.