From 8f54d608ce9b678f203d400cb64843f2ad0556c1 Mon Sep 17 00:00:00 2001 From: Eliezer Croitoru Date: Sat, 22 Jun 2024 23:41:53 +0300 Subject: [PATCH] 2 --- generate_ipsec_config.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/generate_ipsec_config.rb b/generate_ipsec_config.rb index d409a3f..44c7a1c 100755 --- a/generate_ipsec_config.rb +++ b/generate_ipsec_config.rb @@ -84,7 +84,6 @@ config << "/ip ipsec identity\nadd peer=#{phase1_profile_name} secret=\"#{pre_sh config << "/ip ipsec proposal\nadd name=\"#{phase2_profile_name}\" auth-algorithms=\"#{phase2_hash_algorithms.join(',')}\" enc-algorithms=\"#{phase2_encryption_algorithms.join(',')}\" pfs-group=#{pfs_group}\n\n" config << "/ip ipsec policy\nadd disabled=yes dst-address=#{remote_address} peer=#{phase1_profile_name} proposal=#{phase2_profile_name} src-address=#{phase2_local_address} tunnel=yes\n\n" -# Output configuration as plain text without download -cgi.header('type' => 'text/plain') +puts "Content-Type: text/plain" puts puts config