feat(network): allow binding to specific interface (#4481)

This commit is contained in:
David Lane 2025-12-23 13:08:12 -05:00 committed by GitHub
commit 0aa7e3fd67
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 205 additions and 9 deletions

View file

@ -191,6 +191,7 @@
options: {
"upnp": "disabled",
"address_family": "ipv4",
"bind_address": "",
"port": 47989,
"origin_web_ui_allowed": "lan",
"external_ip": "",

View file

@ -33,6 +33,13 @@ const effectivePort = computed(() => +config.value?.port ?? defaultMoonlightPort
<div class="form-text">{{ $t('config.address_family_desc') }}</div>
</div>
<!-- Bind address -->
<div class="mb-3">
<label for="bind_address" class="form-label">{{ $t('config.bind_address') }}</label>
<input type="text" class="form-control" id="bind_address" v-model="config.bind_address" />
<div class="form-text">{{ $t('config.bind_address_desc') }}</div>
</div>
<!-- Port family -->
<div class="mb-3">
<label for="port" class="form-label">{{ $t('config.port') }}</label>

View file

@ -138,6 +138,8 @@
"av1_mode_desc": "Allows the client to request AV1 Main 8-bit or 10-bit video streams. AV1 is more CPU-intensive to encode, so enabling this may reduce performance when using software encoding.",
"back_button_timeout": "Home/Guide Button Emulation Timeout",
"back_button_timeout_desc": "If the Back/Select button is held down for the specified number of milliseconds, a Home/Guide button press is emulated. If set to a value < 0 (default), holding the Back/Select button will not emulate the Home/Guide button.",
"bind_address": "Bind address",
"bind_address_desc": "Set the specific IP address Sunshine will bind to. If left blank, Sunshine will bind to all available addresses.",
"capture": "Force a Specific Capture Method",
"capture_desc": "On automatic mode Sunshine will use the first one that works. NvFBC requires patched nvidia drivers.",
"cert": "Certificate",