diff options
author | EnokMan <416828041@qq.com> | 2019-10-23 22:19:27 +0800 |
---|---|---|
committer | Ry Dahl <ry@tinyclouds.org> | 2019-10-23 10:19:26 -0400 |
commit | 7c60ab46643d3190d1734678e085bc304c5f7813 (patch) | |
tree | d9d2967e736d6b3ed1b4476e6d060ab38c32f548 /cli/state.rs | |
parent | 4bebbda8db3c73725c9ee3ff528a0dad0e376f50 (diff) |
refactor DenoPermissions.check_net & resolve_addr (#3182)
Diffstat (limited to 'cli/state.rs')
-rw-r--r-- | cli/state.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/state.rs b/cli/state.rs index 950bdba70..ca64e6d6c 100644 --- a/cli/state.rs +++ b/cli/state.rs @@ -336,8 +336,8 @@ impl ThreadSafeState { } #[inline] - pub fn check_net(&self, host_and_port: &str) -> Result<(), ErrBox> { - self.permissions.check_net(host_and_port) + pub fn check_net(&self, hostname: &str, port: u16) -> Result<(), ErrBox> { + self.permissions.check_net(hostname, port) } #[inline] |