# Cannot get configuration settings "mode" and "showhost" to work

**URL:** <https://discourse.mitmproxy.org/t/cannot-get-configuration-settings-mode-and-showhost-to-work/461>\
**Category:** help\
**Created:** [April 30, 2017, 7:59pm UTC](https://discourse.mitmproxy.org/t/cannot-get-configuration-settings-mode-and-showhost-to-work/461 "2017-04-30T19:59:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![secretpow](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@secretpow](https://discourse.mitmproxy.org/u/secretpow)\
**Post date:** [April 30, 2017, 7:59pm UTC](https://discourse.mitmproxy.org/t/cannot-get-configuration-settings-mode-and-showhost-to-work/461/1 "2017-04-30T19:59:08Z")

</div>

Hi! I’m trying to upgrade mitmproxy from 0.18.2 to 2.0.2. This is my old configuration file (`~/.mitmproxy/mitmproxy.conf`):

```ini
transparent = true
host = true
script = [/opt/mitm/scripts/test.py]
ignore = [1.2.3.4]

```

Using [https://github.com/mitmproxy/mitmproxy/blob/master/mitmproxy/options.py](https://github.com/mitmproxy/mitmproxy/blob/master/mitmproxy/options.py) as a reference, I wrote this configuration file for 2.0.2 (`~/.mitmproxy/config.yaml`):

```auto
mode: transparent
showhost: true
scripts: [/opt/mitm/scripts/test.py]
ignore_hosts: [1.2.3.4]

```

But the `mode` and `showhost` settings appear to be ignored. With 0.18.2, I could just stick the equivalent settings in the config file, and drop the `-T --host` options when launching mitmproxy. This does not work for me on 2.0.2. If I launch it with `-T`, proxying works, but the `showhost` option is still not enabled. What am I doing wrong, how do I fix it?

---

<div class="post-metadata">

**Author:** ![mhils](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/mhils/32/7_2.png) [@mhils](https://discourse.mitmproxy.org/u/mhils)\
**Post date:** [May 3, 2017, 10:22pm UTC](https://discourse.mitmproxy.org/t/cannot-get-configuration-settings-mode-and-showhost-to-work/461/2 "2017-05-03T22:22:22Z")

</div>

Hi @secretpow!

Sorry for the trouble - we had a bug in this in 2.0 ([https://github.com/mitmproxy/mitmproxy/issues/1899](https://github.com/mitmproxy/mitmproxy/issues/1899)), this should be fixed with the next release.
