Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

choose default route ip #266

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

h0tw1r3
Copy link

@h0tw1r3 h0tw1r3 commented Aug 30, 2021

partially fixes #130

makes an intelligent selection of a routable IP as the default.

Poked around the URL code, and I made a branch with a new setting to override the domain used in urls, but it's going to take a bit to unwind the use of setGlobalDomain. I likely did it wrong... but it does work for me.
From what I can tell, on startup System.IPAddress is used, but then it switches to overwriting System.Domain on web requests. Not sure what the right way to handle that is.

@th1031
Copy link

th1031 commented Mar 11, 2022

If one uses a systemd unit file to manage xteve, the BindToDevice option can be used in the Service container, for example:
[Service]
Type=simple
BindToDevice=enp3s0
ExecStart=/home/th/bin/xteve -config /home/th/xteve/ -port 34400
....
That will start xteve on the specified interface.

@h0tw1r3
Copy link
Author

h0tw1r3 commented Apr 4, 2022

Good tip, but binding to a device and choosing a reasonable default IP can be different depending on your setup.

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.

Wrong DVR IP detected
2 participants