src/proxies/socks.js
function getHostType(host) {
  if (net.isIPv4(host)) {
    return ATYP_V4;
  }
  if (net.isIPv6(host)) {
    return ATYP_V6;
  }
  return ATYP_DOMAIN;
}
function getHostType(host) {
  if (net.isIPv4(host)) {
    return ATYP_V4;
  }
  if (net.isIPv6(host)) {
    return ATYP_V6;
  }
  return ATYP_DOMAIN;
}
function getHostType ( host ) { if ( net . isIPv4 ( host ) ) { return ATYP_V4 ; } if ( net . isIPv6 ( host ) ) { return ATYP_V6 ; } return ATYP_DOMAIN ; }
const REPLY_ADDRESS_TYPE_NOT_SUPPORTED = 0x08; const REPLY_UNASSIGNED = 0xff;
const REPLY_ADDRESS_TYPE_NOT_SUPPORTED = 0x08 ; const REPLY_UNASSIGNED = 0xff ;