This doesn't work properly - it outputs:

[connect.geoip] local_geoip set: [object Object]

If you modify the signature of the get_results function to this:

function get_results(geoip, cfg) {
    ....
}

You can then change this line to:

connection.loginfo(plugin, "local_geoip set: " + get_results(local_geoip, cfg));

You'll need to change lines 15 and 26 to pass the geoip object instead of connection though.