Restrict check in LuaSocket module.