--- a/net/pfSense-pkg-freeradius3/files/usr/local/pkg/freeradius.inc +++ b/net/pfSense-pkg-freeradius3/files/usr/local/pkg/freeradius.inc @@ -2862,10 +2862,14 @@ function freeradius_modulesmotp_resync() { function freeradius_modulesgoogleauth_resync() { $conf = ''; - // put the constant to a variable + // Put the constant to a variable $varFREERADIUS_SCRIPTS = FREERADIUS_SCRIPTS; + // Read anti-replay setting from configuration + $settingsconfig = config_get_path('installedpackages/freeradiussettings/config/0', []); + $varsettingsotpantireplay = ($settingsconfig['varsettingsotpantireplay'] == 'on') ? '1' : '0'; + $conf .= <<