The host and port properties in core/main/client/net.js should make use of the appropriate public_host and public_port properties, if available. A public_proto option should probably also be added to the config file, then added here too.
host: "<%= @beef_host %>",
port: "<%= @beef_port %>",
hook: "<%= @beef_hook %>",
httpproto: "<%= @beef_proto %>",
handler: '/dh',
chop: 500,
pad: 30, //this is the amount of padding for extra params such as pc, pid and sid
sid_count: 0,
cmd_queue: [],