Skip to content

Commit

Permalink
communicate only in ws2p V1 for the moment
Browse files Browse the repository at this point in the history
  • Loading branch information
librelois committed Nov 13, 2017
1 parent 6e07c0c commit 0b29109
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/modules/ws2p/lib/WS2PClient.ts
Expand Up @@ -17,7 +17,7 @@ export class WS2PClient {
const k2 = new Key(server.conf.pair.pub, server.conf.pair.sec)
const myWs2pId = (server.conf.ws2p && server.conf.ws2p.uuid) ? server.conf.ws2p.uuid:""
const c = WS2PConnection.newConnectionToAddress(
endpointVersion,
Math.min(endpointVersion, WS2PConstants.WS2P_VERSION),
fullEndpointAddress,
messageHandler,
new WS2PPubkeyLocalAuth(server.conf.currency , k2, myWs2pId, allowKey),
Expand Down
2 changes: 1 addition & 1 deletion app/modules/ws2p/lib/constants.ts
Expand Up @@ -2,7 +2,7 @@ import {CommonConstants} from "../../../lib/common-libs/constants"
export const WS2PConstants = {

WS2P_DEFAULT_VERSION:1,
WS2P_VERSION: 2,
WS2P_VERSION: 1,

WS2P_UPNP_TTL: 600,
WS2P_PORTS_START: 20900,
Expand Down

0 comments on commit 0b29109

Please sign in to comment.