Skip to content

Cannot use existing Wintun adapter by name (breaking change since latest official v26.3.27) #6780

Closed

Description

@AlekseyMartynov

NewTun is documented as

// NewTun creates a Wintun interface with the given name. Should a Wintun
// interface with the same name exist, it tried to be reused.
func NewTun(options *Config) (Tun, error) {

I relied on this behavior: created and configured custom Wintun adapter as well as Windows Filtering Platform rules before launching xray.exe

For unclear reason, the call to wintun.OpenAdapter was removed in #5887 (diff). So now the use case is broken.

cc @LjhAUMEM

Activity

  1. LjhAUMEM commented on Sep 18, 2026

    @LjhAUMEM
    Contributor

    I was wondering why OpenAdapter existed; so that's what it's for. might need to add it back. cc @yiguodev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions