Skip to content

Commit

Permalink
feat: add -T option for socat command.
Browse files Browse the repository at this point in the history
  • Loading branch information
lobin-z0x50 committed Jul 10, 2024
1 parent 61dedf7 commit 3faaffc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/lib/socat_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def _log(str)
def _get_command(dest, unix_socket_path = nil)
unix_socket_path ||= _get_unix_socket_path_name(dest).first
cmd = ['socat']
cmd << "-T#{ENV['SOCAT_INACTIVE_TIMEOUT']||300}"
cmd << "-lf#{unix_socket_path}.log"
if ENV['SOCAT_DUMP_LOGS']
cmd << "-r #{unix_socket_path}.request.dump"
Expand Down

0 comments on commit 3faaffc

Please sign in to comment.