summaryrefslogtreecommitdiffstats
path: root/openvpn-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'openvpn-model.lua')
-rw-r--r--openvpn-model.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/openvpn-model.lua b/openvpn-model.lua
index c324353..3259f29 100644
--- a/openvpn-model.lua
+++ b/openvpn-model.lua
@@ -245,7 +245,7 @@ function create_config(config)
elseif posix.stat(path) then
success = false
config.value.name.errtxt = "File already exists"
- elseif not string.match(path,".*conf") then
+ elseif not string.match(path,".*%.conf") then
success = false
config.value.name.errtxt = "Filename must end with '.conf'"
end