Correctly bind to the wildcard address in AsyncServerSocket::bind
authorChristopher Dykes <cdykes@fb.com>
Tue, 22 Nov 2016 17:48:18 +0000 (09:48 -0800)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Tue, 22 Nov 2016 17:53:32 +0000 (09:53 -0800)
commite2a71713a035811615dc8178d598b052b067e015
tree90a9a7dbb4f8ee3e141b96ddbe7683394464368d
parentcc97c6eaa0fa39a5107f5a4da7782692347d6d79
Correctly bind to the wildcard address in AsyncServerSocket::bind

Summary: Because Windows disagrees with everything else about how to specify that you want the wildcard address. It's done with an empty string on Windows, but `nullptr` everywhere else.

Reviewed By: yfeldblum

Differential Revision: D4216970

fbshipit-source-id: b5dc136946d9677a96be3252e44d383a6abca800
folly/io/async/AsyncServerSocket.cpp