retroshare-android-service better debug message

This commit is contained in:
Gioacchino Mazzurco 2018-09-06 02:05:29 +02:00
parent 2c8aa5a1fe
commit ddc1f462db
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051

View File

@ -41,6 +41,7 @@
#ifdef RS_JSONAPI
# include "jsonapi/jsonapi.h"
# include "util/rsnet.h"
# include "util/rsurl.h"
# include <cstdint>
# include <QCommandLineParser>
@ -152,9 +153,11 @@ int main(int argc, char *argv[])
sockaddr_storage_inet_pton(tmp, jsonApiBindAddress);
sockaddr_storage_setport(tmp, jsonApiPort);
sockaddr_storage_ipv6_to_ipv4(tmp);
RsUrl tmpUrl(sockaddr_storage_tostring(tmp));
tmpUrl.setScheme("http");
std::cerr << "JSON API listening on "
<< sockaddr_storage_tostring(tmp)
<< tmpUrl.toString()
<< std::endl;
}