From 11bb65a739195e6c4770f702452a6ad5ad6b6c4e Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 13 Aug 2023 22:03:55 +0800 Subject: [PATCH] Update index.py --- plugins/op_waf/index.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/op_waf/index.py b/plugins/op_waf/index.py index 85bb755ad..81ae19f19 100755 --- a/plugins/op_waf/index.py +++ b/plugins/op_waf/index.py @@ -245,6 +245,12 @@ def contentReplace(content): content = content.replace('{$SERVER_PATH}', service_path) content = content.replace('{$WAF_PATH}', waf_path) content = content.replace('{$WAF_ROOT}', waf_root) + + if mw.isAppleSystem(): + content = content.replace('{$MMDB_FILE_SUFFIX}', 'dylib') + else: + content = content.replace('{$MMDB_FILE_SUFFIX}', 'so') + return content