diff options
-rw-r--r-- | libs/core/luasrc/model/network.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/core/luasrc/model/network.lua b/libs/core/luasrc/model/network.lua index b1db9dbfc..a85def89a 100644 --- a/libs/core/luasrc/model/network.lua +++ b/libs/core/luasrc/model/network.lua @@ -279,6 +279,13 @@ function ifnameof(self, x) end end +function get_protocol(self, protoname, netname) + local v = _protocols[protoname] + if v then + return v(netname or "__dummy__") + end +end + function get_protocols(self) local p = { } local _, v |