From 83ee608737b7b04f6166e9115536476b83a7c9d8 Mon Sep 17 00:00:00 2001
From: byvs <v.stepanishchev@bk.ru>
Date: Wed, 22 May 2024 11:39:41 +0300
Subject: [PATCH] =?UTF-8?q?code:=20=D1=81=D0=B2=D0=BE=D0=B9=20=D0=B2=D0=B0?=
 =?UTF-8?q?=D1=80=D0=B8=D0=B0=D0=BD=D1=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 main.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/main.cpp b/main.cpp
index bdbd7e3..360bdfa 100644
--- a/main.cpp
+++ b/main.cpp
@@ -62,6 +62,12 @@ Input download(const string& address) {
                 cerr << curl_easy_strerror(res);
                 exit(1);
             }
+            char* ip_address;
+            curl_easy_getinfo(curl, CURLINFO_PRIMARY_IP, &ip_address);
+            if (ip_address)
+            {
+                cerr << ip_address << endl;
+            }
             curl_easy_cleanup(curl);
         }
     return input_data(buffer, false);