前言
如前所述,
我们知道,strongswan以插件功能来提供各种各样的功能。插件之间彼此相互提供功能,同时也有可能提供重复的功能。
这个时候,便需要一个优先级关系,来保证先后加载顺序。
方法
在配置文件中,有这样一个配置项,配给每一个plugin
charon.plugins.<name>.load
它的值,可以是Yes,NO,可以是数字。Yes,No代表是否启用该插件。通知默认赋予优先级的值1. 优先级值随数字增大,优先级越高。高优先级的会
更先被加载。同优先级的,按插件名字的字母表顺序进行加载。
见:manual strongswan.conf
charon.load_modular [no] If enabled, the list of plugins to load is determined via the value of the charon.plugins.<name>.load options. In addition to a simple boolean flag that option may take an integer value indicating the priority o