Bug: cannot enable forwarding

The code compared a boolean variable with the string "true". This
does not work as expected.