cnumr / GreenIT-Analysis-cli

Wrapper de l'extension GreenIT Analysis
GNU Affero General Public License v3.0
46 stars 19 forks source link

Generate report without access to public network #49

Closed GChapel closed 1 year ago

GChapel commented 2 years ago

Hello,

The report generation fail when the plugin doesn't have access to public network (the code try to reach ip-api.com to determine isMobile value)

This PR change the behavior : when ip-api.com is not reachable, the isMobile value directly depends on the defined device

Regards

GChapel commented 1 year ago

Thank you for your comments ! I'll update this PR this week 👍