mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2025-12-12 11:20:15 +01:00
eject usb setting
This commit is contained in:
@@ -82,8 +82,11 @@ class Data(object):
|
||||
|
||||
|
||||
def get_ip_address(self):
|
||||
ip = subprocess.check_output(['hostname', '-I']).decode('utf-8').split()[0]
|
||||
return ip
|
||||
ip_list = subprocess.check_output(['hostname', '-I']).decode('utf-8').split()
|
||||
if len(ip_list) > 0:
|
||||
return ip_list[0]
|
||||
else:
|
||||
return 'none'
|
||||
|
||||
def get_ip_for_osc_client(self):
|
||||
if self.settings['user_input']['REMOTE_SERVER']['value'] == 'enabled':
|
||||
|
||||
Reference in New Issue
Block a user