Setting a dirport causes recent Tors to warn, and setting it serves no real purpose on a bridge. DirPort should be set to 0 when configured as a bridge.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items 0
Show closed items
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Linked items 0
Link issues together to show that they're related.
Learn more.
The patch generally looks good to me. The only thing I would change is that I don't believe you need to set the DirPort to 0 when you are also calling setDirectoryMirror(false). If the user sets up a normal relay and directory mirror, switches to acting as a bridge relay and then switches back, their previous directory port setting would've been erased from vidalia.conf (it gets removed from their torrc anyway) so they'd have to re-enter it. That's a pretty trivial inconvenience, though, and likely an even rarer use case.