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