lufo-cli/src/lufo.js
function () {
  const options = {};
  options.host = cli.ufo || process.env.LUFO_ADDRESS || '';
  options.password = cli.password || process.env.LUFO_PASSWORD || undefined;
  options.localHost = cli.localHost || process.env.LUFO_LOCALHOST || undefined;
  options.localUdpPort = parseInt(cli.localUdpPort || process.env.LUFO_LOCAL_UDP, 10) || undefined;
  options.remoteUdpPort = parseInt(cli.remoteUdpPort || process.env.LUFO_REMOTE_UDP, 10) || undefined;
  options.localTcpPort = parseInt(cli.localTcpPort || process.env.LUFO_LOCAL_TCP, 10) || undefined;
  options.remoteTcpPort = parseInt(cli.remoteTcpPort || process.env.LUFO_REMOTE_TCP, 10) || undefined;
  options.immediate = parseBoolean(cli.immediate, process.env.LUFO_IMMEDIATE) || undefined;
  return options;
}
function () {
  const options = {};
  options.host = cli.ufo || process.env.LUFO_ADDRESS || '';
  options.password = cli.password || process.env.LUFO_PASSWORD || undefined;
  options.localHost = cli.localHost || process.env.LUFO_LOCALHOST || undefined;
  options.localUdpPort = parseInt(cli.localUdpPort || process.env.LUFO_LOCAL_UDP, 10) || undefined;
  options.remoteUdpPort = parseInt(cli.remoteUdpPort || process.env.LUFO_REMOTE_UDP, 10) || undefined;
  options.localTcpPort = parseInt(cli.localTcpPort || process.env.LUFO_LOCAL_TCP, 10) || undefined;
  options.remoteTcpPort = parseInt(cli.remoteTcpPort || process.env.LUFO_REMOTE_TCP, 10) || undefined;
  options.immediate = parseBoolean(cli.immediate, process.env.LUFO_IMMEDIATE) || undefined;
  return options;
}
function ( ) { const options = { } ; options . host = cli . ufo || process . env . LUFO_ADDRESS || '' ; options . password = cli . password || process . env . LUFO_PASSWORD || undefined ; options . localHost = cli . localHost || process . env . LUFO_LOCALHOST || undefined ; options . localUdpPort = parseInt ( cli . localUdpPort || process . env . LUFO_LOCAL_UDP , 10 ) || undefined ; options . remoteUdpPort = parseInt ( cli . remoteUdpPort || process . env . LUFO_REMOTE_UDP , 10 ) || undefined ; options . localTcpPort = parseInt ( cli . localTcpPort || process . env . LUFO_LOCAL_TCP , 10 ) || undefined ; options . remoteTcpPort = parseInt ( cli . remoteTcpPort || process . env . LUFO_REMOTE_TCP , 10 ) || undefined ; options . immediate = parseBoolean ( cli . immediate , process . env . LUFO_IMMEDIATE ) || undefined ; return options ; }
Helper function to construct a UfoOptions object.
Helper function to construct a UfoOptions object .