Skip to content

Commit d0d8c1e

Browse files
committed
修复错误
1 parent 2484ad3 commit d0d8c1e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

network.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@
1919
* Github: https://github.com/mikecovlee
2020
*/
2121
#include <network/network.hpp>
22-
#include <covscript/extension.hpp>
2322
#include <covscript/cni.hpp>
23+
#include <covscript/extension.hpp>
24+
#include <covscript/extensions/char.hpp>
2425
#include <covscript/extensions/string.hpp>
26+
#include <covscript/extensions/exception.hpp>
2527
#include <memory>
2628

2729
namespace network_cs_ext {
@@ -288,7 +290,9 @@ namespace network_cs_ext {
288290

289291
void init()
290292
{
293+
char_cs_ext::init();
291294
string_cs_ext::init();
295+
except_cs_ext::init();
292296
network_ext.add_var("tcp", var::make_protect<extension_t>(tcp::tcp_ext_shared));
293297
network_ext.add_var("udp", var::make_protect<extension_t>(udp::udp_ext_shared));
294298
network_ext.add_var("host_name", var::make_protect<callable>(cni(host_name), true));

0 commit comments

Comments
 (0)