Jump to content
Korean Random
Kodak

Additional pinger hosts

Recommended Posts

Hi, as I am having occasional lags I was trying to put more entries into pinger's hosts to have any idea whether ISP has problem or WG has it (basically putting a host or two from a traceroute to WG servers). I wanted to create a mod for it: import pinger and add some entries to _ping.hosts. I have done that successfully but all the ping info in the game still show only two (EU) entries. Can someone give me a hint what am i doing wrong here? Thanks in advance.

... Config routine

try:
    from xvm_main.python.pinger import _ping
except ImportError:
    _ping = None

if _ping:
    del _ping.hosts[1]
    for entry in _config.get("hosts", []):
        _ping.hosts.append({
            'Name': 'WOT ' + str(entry.get('name', 'unknown')),
            'Url': str(entry.get('url', 'localhost'))})
    DOLOG("pinger hosts: %s" % str(_ping.hosts))        
else:
    DOLOG("no _ping object available")
Edited by Kodak

Share this post


Link to post

Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...