mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
refactor DenoPermissions.check_net & resolve_addr (#3182)
This commit is contained in:
parent
4bebbda8db
commit
7c60ab4664
6 changed files with 70 additions and 127 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue