How does Eddie build OpenVPN directives?

The Settings -> OVPN directives page controls how OpenVPN directives are built in the final configuration file.
Directives are defined in the following order:
  • Base directives
    Changing or removing these directives may cause client to not work properly.
    Current default:
    client
    dev tun
    resolv-retry infinite
    nobind
    persist-key
    persist-tun
    verb-3
    connect-retry-max 1
    ping 10
    ping-exit 32
    explicit-exit-notify 5
    		
  • Provider directives (specific for each provider, for example cipher)
  • Server directives (specific for each server)
  • Computed directives based on other settings (for example protocols, proxy, routes etc)
  • Custom directives

If you choose Use only custom directives, only Computed directives and Custom directives are applied. This setting is generally used for debugging/testing.
If the same directive exists in different areas, and is a directive that can be specified only one time, the latest is used. The following directives can be specified multiple times:

remote
route
plugin
x509-track
http-proxy-option
ignore-unknown-option