Commit graph libervia-backend/src/plugins/plugin_misc_ip.py
Author SHA1 Message Date
Goffi
348be27934 copyright update 2016-01-03 16:28:30 +01:00
Goffi
99e012e4cb plugin ip: fixed ip check (XEP-0279) use 2015-11-25 00:22:23 +01:00
Goffi
9911d60449 plugins IP: getLocalIPs now return localhost IP instead of an empty list if no non-localhost ip can be found 2015-11-11 18:19:49 +01:00
Goffi
1a5f1bd144 plugin ip: implemented XEP-0279 for external ip retrieval + fixed bad exception handling 2015-11-08 14:44:30 +01:00
Goffi
7ca36bc79d plugin ip: local ip cache + DNS error detection 2015-11-02 22:02:41 +01:00
Goffi
c23c6c39b8 plugin IP discovery: better IP discovering:
- locals and external IP addresses can be discovered
    - if netifaces is available, it is used
    - same thing for NAT Port plugin
    - cache is no more managed per profile but globally, a signal or observer will be used in the future to detect connection changes
2015-09-29 17:54:25 +02:00
Goffi
76e571e18b plugin ip, params: plugin IP discovery, first draft:
- a dedicated plugin now manage IP discovery, for now it uses external website, but it should implement XEP-0279 soon
    - a permission is requested to user for calling an external website. Once the permission is granted (it's global), it is not asked anymore.
    - the ip is discovered on demand, and cache is kept for the session.
    - memory.params.getParamA has a new parameter use_default, which allow to get None when a parameter is not set, instead of the default value.
        This allow to detected when we need to do the first permission request. memory.getParamA don't have this parameter.
2015-09-29 17:54:22 +02:00