Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 107
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 234
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 235
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 236
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 237
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 238
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 239
# This software may be freely redistributed under the terms of the GNU
# general public license.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
import subprocess
def getDealerAddress():
matches = []
cmd = [ '/usr/bin/avahi-browse', '--all', '--terminate', '--resolve' ]
cmdp = subprocess.Popen(cmd,shell=False,stdout=subprocess.PIPE)
data = cmdp.communicate()[0]
lines = data.split('\n')
match_mode = False
for line in lines:
if line.startswith("="):
if line.find("dealer") != -1 and line.find('IPv4') != -1:
match_mode = True
else:
match_mode = False
if match_mode and line.find("address") != -1 and line.find("[") != -1:
(afirst, alast) = line.split("[",1)
(addr, junk) = alast.split("]",1)
if addr.find(":") == -1:
matches.append(addr.strip())
if match_mode and line.find("port") != -1 and line.find("[") != -1:
(lfirst,llast) = line.split("[",1)
(port,ljunk) = llast.split(']',1)
matches.append(port.strip())
#return matches
return ('127.0.0.1','80')