Skip to content

Functions inherit_network and allow_ip_name_lookup are missing from c-api #13130

@gearhand

Description

@gearhand

Feature

I wish to have those functions available in C API as wasmtime_inherit_network and wasmtime_allow_ip_name_lookup.

Benefit

Without them I cannot enable network access and dns resolution for my guest code (for example, cannot make http request with wasi-http).
I also did not find any alternative way to enable network access via C API.

Implementation

I have already implemented this feature locally and ready to make a PR. My only doubt is that maybe those functions are part of some older way of interacting with network access, and there is an alternative available.

Alternatives

I did not find any.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wasmtime:c-apiIssues pertaining to the C API.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions