Fix tunnel info crash when running the sessions command with a websocket based session

This commit is contained in:
adfoster-r7 2021-10-21 13:06:22 +01:00
parent b306641755
commit 9a50668c5b
No known key found for this signature in database
GPG Key ID: 3BD4FA3818818F04
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ module Interactive
def comm_channel
return @comm_info if @comm_info
if rstream.respond_to?(:channel)
if rstream.respond_to?(:channel) && rstream.channel.respond_to?(:client)
@comm_info = "via session #{rstream.channel.client.sid}" if rstream.channel.client.respond_to?(:sid)
end
end