Skip to content

Conversation

@Ylarod
Copy link

@Ylarod Ylarod commented Mar 18, 2025

Enhance GetUsbmuxdSocket to support various socket address formats, fix recognizing "export USBMUXD_SOCKET_ADDRESS=UNIX:///tmp/usbmuxd" as tcp connections.

Enhance GetUsbmuxdSocket to support various socket address formats,
fix recognizing "export USBMUXD_SOCKET_ADDRESS=UNIX:///tmp/usbmuxd"
as tcp connections.
@Ylarod Ylarod changed the title Better GetUsbmuxdSocket Implementation fix: recognizing "export USBMUXD_SOCKET_ADDRESS=UNIX:///tmp/usbmuxd" as tcp connections. Mar 18, 2025
return "unix://" + socket_override
}
// if it is a tcp address, use it
if strings.Contains(socket_override, ":") && strings.Contains(socket_override, ".") {
Copy link
Collaborator

@aluedeke aluedeke Dec 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about hostname:port this?

Can't we fix this and maintain backward compatibility?

Check if there is a scheme on the string if so return it. If not fallback to the old logic.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants