Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ X11Proxy.prototype.newClient = function (socket) {
);
} else {
idBuf.writeUInt8(6, 18);
idBuf = (new ip.v6.Address(socket.remoteAddress)).parsedAddress
idBuf = (new ip.Address6(socket.remoteAddress)).parsedAddress
.reduce(
function (o, v, i) {
o.writeUInt16BE(v, i * 2);
Expand Down
4 changes: 2 additions & 2 deletions src/x_protocol.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { GCVField, WinVField, WinConfigureField } from './common';
import * as x_types from './x_types';
import EndianBuffer from './endianbuffer';
import { v6 } from 'ip-address';
import { Address6 } from 'ip-address';

export class XProtocolServer {
constructor(socket, onClose) {
Expand Down Expand Up @@ -105,7 +105,7 @@ export class XProtocolClient {
.join('.');
} else {
this.host_type = 'InternetV6';
this.host = (new v6.Address(
this.host = (new Address6(
Array.apply(null, new Array(8))
.map(function (v, i) {
return this.idBuf.readUInt16(i * 2)
Expand Down