mirror of
https://github.com/ChronosX88/Influence-cjdns.git
synced 2024-11-23 15:42:18 +00:00
The way of obtaining IPv6 is changed.
This commit is contained in:
parent
fd20de0e38
commit
aac8567528
@ -12,7 +12,7 @@ void Handler::handle(QJsonObject jsonReceived)
|
||||
QJsonObject jsonSend;
|
||||
if(jsonReceived["action"] == "createSession" && !jsonReceived.contains("status"))
|
||||
{
|
||||
jsonSend["peerID"] = QHostAddress("fc8f:cc50:70b0:3731:d686:a75e:94f2:f44f").toString();
|
||||
jsonSend["peerID"] = my_ipv6;
|
||||
jsonSend["action"] = "createSession";
|
||||
jsonSend["status"] = true;
|
||||
QString peerReceiver = jsonReceived["peerID"].toString();
|
||||
|
@ -7,6 +7,8 @@ class Handler : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
const QString my_ipv6 = Network::local_ipv6();
|
||||
|
||||
public:
|
||||
Handler();
|
||||
signals:
|
||||
@ -15,4 +17,6 @@ class Handler : public QObject
|
||||
Network *network;
|
||||
private slots:
|
||||
void handle(QJsonObject jsonReceived);
|
||||
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user