mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 00:23:25 +02:00
Reverse port forwarding UI actually works now.
This commit is contained in:
@@ -106,6 +106,7 @@ module.exports = function(options) {
|
||||
, provider: message.provider
|
||||
, present: true
|
||||
, owner: null
|
||||
, reverseForwards: []
|
||||
}
|
||||
})
|
||||
})
|
||||
@@ -240,6 +241,15 @@ module.exports = function(options) {
|
||||
}
|
||||
})
|
||||
})
|
||||
.on(wire.ReverseForwardsEvent, function(channel, message) {
|
||||
socket.emit('device.change', {
|
||||
important: false
|
||||
, data: {
|
||||
serial: message.serial
|
||||
, reverseForwards: message.forwards
|
||||
}
|
||||
})
|
||||
})
|
||||
.handler()
|
||||
|
||||
// Global messages
|
||||
@@ -676,7 +686,6 @@ module.exports = function(options) {
|
||||
if (!data.targetHost || data.targetHost === 'localhost') {
|
||||
data.targetHost = socket.request.ip
|
||||
}
|
||||
socket.emit('forward.create', data)
|
||||
joinChannel(responseChannel)
|
||||
push.send([
|
||||
channel
|
||||
@@ -687,7 +696,6 @@ module.exports = function(options) {
|
||||
])
|
||||
})
|
||||
.on('forward.remove', function(channel, responseChannel, data) {
|
||||
socket.emit('forward.remove', data)
|
||||
joinChannel(responseChannel)
|
||||
push.send([
|
||||
channel
|
||||
|
||||
Reference in New Issue
Block a user