diff options
author | blmpl <blm@poczta.fm> | 2016-10-15 10:10:52 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2016-10-15 10:13:00 +0200 |
commit | 79844540a83d7acaf8166b3081913f1968ebf78c (patch) | |
tree | 86ac1a7ba990661b0f4a063d165431f89d82e5f9 /src/settings.c | |
parent | 7c2d9ebb7f61cf04d75e28ca5cd6932002c4357b (diff) | |
download | pianobar-79844540a83d7acaf8166b3081913f1968ebf78c.tar.gz pianobar-79844540a83d7acaf8166b3081913f1968ebf78c.tar.bz2 pianobar-79844540a83d7acaf8166b3081913f1968ebf78c.zip |
Support binding to a specific network interface
Closes #597.
Diffstat (limited to 'src/settings.c')
-rw-r--r-- | src/settings.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/settings.c b/src/settings.c index f1aa707..115a71c 100644 --- a/src/settings.c +++ b/src/settings.c @@ -111,6 +111,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); @@ -269,6 +270,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)) { |