File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1717from octoprint_netconnectd .analytics import Analytics
1818
1919class NetconnectdSettingsPlugin (octoprint .plugin .SettingsPlugin ,
20- octoprint .plugin .TemplatePlugin ,
21- octoprint .plugin .SimpleApiPlugin ,
22- octoprint .plugin .AssetPlugin ):
20+ octoprint .plugin .TemplatePlugin ,
21+ octoprint .plugin .SimpleApiPlugin ,
22+ octoprint .plugin .AssetPlugin ):
2323
2424 LOG_STATE_DELAY = 15.0
2525
@@ -265,7 +265,10 @@ def _get_ip_address(self, interface):
265265 :return: String IP
266266 """
267267 try :
268- return netifaces .ifaddresses (interface )[netifaces .AF_INET ][0 ]['addr' ]
268+ res = []
269+ for tmp in netifaces .ifaddresses (interface )[netifaces .AF_INET ]:
270+ res .append (tmp ['addr' ])
271+ return ", " .join (res )
269272 except :
270273 pass
271274
You can’t perform that action at this time.
0 commit comments