[mod] titles of WS2P
This commit is contained in:
@@ -39,22 +39,21 @@ export function ws2pWatcher(conf: Conf) {
|
|||||||
|
|
||||||
await c.connectAsInitiator()
|
await c.connectAsInitiator()
|
||||||
},
|
},
|
||||||
|
|
||||||
() => c.closed,
|
() => c.closed,
|
||||||
|
|
||||||
conf.waitingDelay,
|
conf.waitingDelay,
|
||||||
conf.recallDelay,
|
conf.recallDelay,
|
||||||
|
|
||||||
mail.onEstablished(conf, target),
|
mail.onEstablished(conf, target, `[OK] WS2P on ${wserver.address}`),
|
||||||
|
|
||||||
// When a disconnection is detected
|
// When a disconnection is detected
|
||||||
mail.onDisconnect(conf, target),
|
mail.onDisconnect(conf, target, `[FAILURE] WS2P on ${wserver.address}`),
|
||||||
|
|
||||||
async () => {
|
async () => {
|
||||||
console.log('Trying to connect to %s', target)
|
console.log('Trying to connect to %s', target)
|
||||||
},
|
},
|
||||||
|
|
||||||
mail.onRestartSuccess(conf, target),
|
mail.onRestartSuccess(conf, target, `[RECOVERED] WS2P on ${wserver.address}`),
|
||||||
)
|
)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user