fix config bug

This commit is contained in:
Jun Kurihara 2022-07-05 23:05:33 +09:00
commit 11db5507ff
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
6 changed files with 17 additions and 4 deletions

View file

@ -43,6 +43,8 @@ pub fn parse_opts(globals: &mut Globals, backends: &mut Backends) -> Result<()>
if let Some(v) = config.listen_only_ipv6 {
if v {
listen_addresses.extend(LISTEN_ADDRESSES_V6.iter());
} else {
listen_addresses.extend(LISTEN_ADDRESSES_V4.iter());
}
} else if let Some(v) = config.listen_ipv6 {
listen_addresses.extend(LISTEN_ADDRESSES_V4.iter());