mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Fix compilation: get_options() now returns const
This commit is contained in:
parent
53ce6bb52d
commit
54d262a728
@ -35,7 +35,7 @@ test_config_addressmap(void)
|
||||
"MapAddress 6.6.6.6 www.infiniteloop.org\n"
|
||||
, sizeof(buf));
|
||||
|
||||
config_get_lines(buf, &(get_options()->AddressMap));
|
||||
config_get_lines(buf, &(get_options_mutable()->AddressMap));
|
||||
config_register_addressmaps(get_options());
|
||||
|
||||
/* MapAddress .invalidwildcard.com .torserver.exit - no match */
|
||||
@ -116,7 +116,7 @@ test_config_addressmap(void)
|
||||
"MapAddress *.torproject.org 1.1.1.1\n"
|
||||
"MapAddress *.net 2.2.2.2\n"
|
||||
, sizeof(buf));
|
||||
config_get_lines(buf, &(get_options()->AddressMap));
|
||||
config_get_lines(buf, &(get_options_mutable()->AddressMap));
|
||||
config_register_addressmaps(get_options());
|
||||
|
||||
strlcpy(address, "www.abc.com", sizeof(address));
|
||||
@ -142,7 +142,7 @@ test_config_addressmap(void)
|
||||
/* We don't support '*' as a mapping directive */
|
||||
addressmap_clear_configured();
|
||||
strlcpy(buf, "MapAddress * *.torserver.exit\n", sizeof(buf));
|
||||
config_get_lines(buf, &(get_options()->AddressMap));
|
||||
config_get_lines(buf, &(get_options_mutable()->AddressMap));
|
||||
config_register_addressmaps(get_options());
|
||||
|
||||
strlcpy(address, "www.abc.com", sizeof(address));
|
||||
|
Loading…
Reference in New Issue
Block a user