rename hostname to host (#74)

This commit is contained in:
u9g 2021-04-23 03:23:43 -04:00 committed by GitHub
commit 39659cf48b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 62 additions and 64 deletions

View file

@ -4,12 +4,12 @@ function createRelay () {
console.log('Creating relay')
/* Example to create a non-transparent proxy (or 'Relay') connection to destination server */
const relay = new Relay({
/* Hostname and port for clients to listen to */
hostname: '0.0.0.0',
/* host and port for clients to listen to */
host: '0.0.0.0',
port: 19130,
/* Where to send upstream packets to */
destination: {
hostname: '127.0.0.1',
host: '127.0.0.1',
port: 19132
}
})