Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ipv4ToInt32 should return unsigned integer (#106)
At least SocksClient.createUDPFrame expects that: `buff.writeUInt32BE(ipv4ToInt32(options.remoteHost.host))`. `>>> 0` is fast and easy way to make integer unsigned: `[200,200,200,200].reduce((acc, part) => (acc << 8) + part, 0)` `-926365496` `[200,200,200,200].reduce((acc, part) => (acc << 8) + part, 0) >>> 0` `3368601800`
- Loading branch information