summaryrefslogtreecommitdiff
path: root/hscript/network.hh
diff options
context:
space:
mode:
Diffstat (limited to 'hscript/network.hh')
-rw-r--r--hscript/network.hh7
1 files changed, 6 insertions, 1 deletions
diff --git a/hscript/network.hh b/hscript/network.hh
index 411f4b3..b556ab8 100644
--- a/hscript/network.hh
+++ b/hscript/network.hh
@@ -69,7 +69,12 @@ public:
bool execute(ScriptOptions) const override;
};
-class Nameserver : public Key {
+class Nameserver : public StringKey {
+private:
+ Nameserver(int _line, const std::string &ns) : StringKey(_line, ns) {}
+public:
+ static Key *parseFromData(const std::string &, int, int *, int *);
+ bool execute(ScriptOptions) const override;
};
class NetSSID : public Key {