socks5-addr-extract

Simple functions of extracting address from SOCKS5 RFC1928 request

Usage no npm install needed!

<script type="module">
  import socks5AddrExtract from 'https://cdn.skypack.dev/socks5-addr-extract';
</script>

README

socks5-addr-extract

A simple function that extracts address string and port number from SOCKS5 RFC1928 request

Usage

Just one function, return address string and port number in a object.

const { getDestAddress } = require('socks5-addr-extract')
// getDestAddress :: Buffer -> { address, port }