Skip to content

IPv6 Support for streameye server#17

Open
irichter wants to merge 1 commit intoccrisan:masterfrom
irichter:ipv6_support
Open

IPv6 Support for streameye server#17
irichter wants to merge 1 commit intoccrisan:masterfrom
irichter:ipv6_support

Conversation

@irichter
Copy link
Contributor

I ran into an issue with streameye, where I could view the streams in a normal web browser, but adding them via hostname to motion wasn't working. Further investigation showed that adding the stream by IPv4 address did work, but that adding by hostname wasn't working because motion supports IPv6, and wasn't falling back to IPv4 as we web browser did.

I therefore present a trivial patch to support IPv6. If I really wanted to be fancy, I'd have added a command-line option to allow specifying IPv4 or IPv6, but it's simpler to just leave that to iptables or perhaps another patch.

@ccrisan
Copy link
Owner

ccrisan commented Dec 21, 2018

Does your patched variant work with IPv4 as well?

@irichter
Copy link
Contributor Author

As long as IPv6 hasn't been disabled in the kernel configuration, it should still "just work", even if no IPv6 addresses have been assigned to interfaces. I've found this to be true in my testing on raspberrian stretch (4.14.87), even when disabling IPv6 via sysctl https://www.techrepublic.com/article/how-to-disable-ipv6-on-linux/

A discussion of why this works is on https://unix.stackexchange.com/questions/237731/why-are-ipv4-tcp-connections-showing-as-tcp6

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