lib/pwn/plugins/baresip.rb in pwn-0.4.551 vs lib/pwn/plugins/baresip.rb in pwn-0.4.552
- old
+ new
@@ -185,12 +185,12 @@
Thread.new do
loop do
next unless File.exist?(screenlog_path)
# Continuously consume contents of screenlog_path
- session_data = File.readlines(screenlog_path)
- session_data.delete_if do |line|
+ @session_data = File.readlines(screenlog_path)
+ @session_data.delete_if do |line|
line.include?('ua: using best effort AF: af=AF_INET')
end
end
end
rescue StandardError => e
@@ -201,10 +201,10 @@
# Supported Method Parameters::
# session_data = PWN::Plugins::BareSIP.dump_session_data
public_class_method def self.dump_session_data
- session_data
+ @session_data
rescue StandardError => e
raise e
end
# Supported Method Parameters::