Merge pull request #3413 from MintYiqingchen/master

fix null point bug because omit calling createInstance
This commit is contained in:
Meng Xu 2020-06-25 10:57:38 -07:00 committed by GitHub
commit 2105778026
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -441,6 +441,7 @@ int main(int argc, char* argv[]) {
}
platformInit();
g_network = newNet2(TLSConfig(), false, true);
FlowTransport::createInstance(!isServer, 0);
NetworkAddress publicAddress = NetworkAddress::parse("0.0.0.0:0");
if (isServer) {
publicAddress = NetworkAddress::parse("0.0.0.0:" + port);