mirror of
https://github.com/openstf/stf
synced 2025-10-05 19:42:01 +02:00
Reverse port forwarding works, but changes don't apply to new devices yet.
This commit is contained in:
parent
a1fa91a356
commit
f8a2eeab26
6 changed files with 97 additions and 33 deletions
|
@ -169,6 +169,26 @@ module.exports = function ControlServiceFactory(
|
|||
rotation: rotation
|
||||
})
|
||||
}
|
||||
|
||||
this.testForward = function(forward) {
|
||||
var tx = TransactionService.create(target)
|
||||
socket.emit('forward.test', channel, tx.channel, forward)
|
||||
return tx
|
||||
}
|
||||
|
||||
this.createForward = function(forward) {
|
||||
var tx = TransactionService.create(target)
|
||||
socket.emit('forward.create', channel, tx.channel, forward)
|
||||
return tx
|
||||
}
|
||||
|
||||
this.removeForward = function(forward) {
|
||||
var tx = TransactionService.create(target)
|
||||
socket.emit('forward.remove', channel, tx.channel, {
|
||||
devicePort: forward.devicePort
|
||||
})
|
||||
return tx
|
||||
}
|
||||
}
|
||||
|
||||
controlService.create = function(target, channel) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue