summaryrefslogtreecommitdiffstats
path: root/dhcp-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'dhcp-model.lua')
-rw-r--r--dhcp-model.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcp-model.lua b/dhcp-model.lua
index 397cf1d..dcee745 100644
--- a/dhcp-model.lua
+++ b/dhcp-model.lua
@@ -25,7 +25,7 @@ end
local replaceentry = function(file, configentry, newstring)
if newstring then
- return string.gsub(file, string.gsub(replacemagiccharacters(table.concat(configentry, "\n")), "\n", "%%s+"), replacemagiccharacters(newstring), 1)
+ return string.gsub(file, string.gsub(replacemagiccharacters(table.concat(configentry, "\n")), "\n", "%%s+"), newstring, 1)
else
return string.gsub(file, "[^\n%S]*"..string.gsub(replacemagiccharacters(table.concat(configentry, "\n")), "\n", "%%s+").."%s*;%s*\n?", "", 1)
end