docker / go-connections

Utility package to work with network connections
https://pkg.go.dev/github.com/docker/go-connections
Apache License 2.0
217 stars 101 forks source link

Allow Unix socket transport on Windows platform #117

Closed arixmkii closed 2 months ago

arixmkii commented 2 months ago

Fixes #116

Implementation is the same as for Unix like systems, but is using MAX_PATH value of Windows platform for sanity check.

- What I did

Copied implementation from _unix version and adapted to use Windows specific constants for sanity checks

- How I did it

MAX_PATH value was taken from https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry

- How to verify it

- Description for the changelog

Allow Unix socket transport on Windows platform

- A picture of a cute animal (not mandatory but encouraged)

arixmkii commented 2 months ago

Duplicate of https://github.com/docker/go-connections/pull/115