@rpcmethod(
    name='network.geoip',
    signature=['String'],
    login_required=satnet_settings.JRPC_LOGIN_REQUIRED
)
def hostname_geoip(hostname):

    host_ip = socket.gethostbyname(hostname)
    lat, lng = gis.get_remote_user_location(ip=host_ip)

    print('>>> host = ' + str(hostname) + ', ip = ' + str(host_ip) +
          ', @(' + str(lat) + ', ' + str(lng) + ')')

    return {'latitude': lat, 'longitude': lng}
Propagate close to underlying adapter.
dataset/ETHPy150Open satnet-project/server/services/network/jrpc/views.py/hostname_geoip--crossover with--dataset/ETHPy150Open sigmavirus24/betamax/betamax/adapter.py/BetamaxAdapter.close