diff options
author | blmpl <blm@poczta.fm> | 2016-10-15 10:10:52 +0200 |
---|---|---|
committer | Michał Cichoń <michcic@gmail.com> | 2017-05-17 04:37:39 +0200 |
commit | 06192d9c879cf70171139597b8f722a41fb88a37 (patch) | |
tree | 8da1c64f4311e4ec873b2b0642886abe0b52404f /src | |
parent | 817ff6a87020a55d7628d600e2ee09b947ee2f4e (diff) | |
download | pianobar-windows-06192d9c879cf70171139597b8f722a41fb88a37.tar.gz pianobar-windows-06192d9c879cf70171139597b8f722a41fb88a37.tar.bz2 pianobar-windows-06192d9c879cf70171139597b8f722a41fb88a37.zip |
Support binding to a specific network interface
Closes #597.
# Conflicts:
# src/ui.c
Diffstat (limited to 'src')
-rw-r--r-- | src/settings.c | 3 | ||||
-rw-r--r-- | src/settings.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/settings.c b/src/settings.c index 6ba2e91..36245de 100644 --- a/src/settings.c +++ b/src/settings.c @@ -119,6 +119,7 @@ void BarSettingsInit (BarSettings_t *settings) { void BarSettingsDestroy (BarSettings_t *settings) { free (settings->controlProxy); free (settings->proxy); + free (settings->bindTo); free (settings->username); free (settings->password); free (settings->passwordCmd); @@ -236,6 +237,8 @@ void BarSettingsRead (BarSettings_t *settings) { settings->controlProxy = strdup (val); } else if (streq ("proxy", key)) { settings->proxy = strdup (val); + } else if (streq ("bind_to", key)) { + settings->bindTo = strdup (val); } else if (streq ("user", key)) { settings->username = strdup (val); } else if (streq ("password", key)) { diff --git a/src/settings.h b/src/settings.h index 78d0e45..e6067f3 100644 --- a/src/settings.h +++ b/src/settings.h @@ -93,6 +93,7 @@ typedef struct { char *password, *passwordCmd; char *controlProxy; /* non-american listeners need this */ char *proxy; + char *bindTo; char *autostartStation; char *eventCmd; char *loveIcon; |