Skip to content

Provide a way to positively detect WSL from an app compiled on Linux. #423

Closed
@dmiller-nmap

Description

@dmiller-nmap

I understand that support is always improving, but it seems unlikely that the specific network functionality (raw sockets, packet sniffing, netlink routes) required by Nmap will ever be supported in WSL/BashOnWindows. We would like to be able to detect WSL and provide users with a helpful message pointing them to our Windows-native build, while allowing our app to continue until the first crash/error.

Is there any stable, predictable method for detecting whether our built-on-Linux program is being run on Windows Subsystem for Linux?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions