Created
June 21, 2013 03:15
-
-
Save Unitech/5828562 to your computer and use it in GitHub Desktop.
struct
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bind = (function(addr) { | |
var hostport = String(addr).split(':'); | |
if (hostport.length < 2) { | |
hostport = [undefined, hostport[0]]; | |
} | |
if (hostport[0] == null) { | |
hostport[0] = 'localhost'; | |
} | |
return { | |
HOST: hostport[0], | |
PORT: Number(hostport[1]), | |
} | |
})(cst.DAEMON_BIND_ADDR); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment