94 ISILON terheléselosztás támogatása
authorVásáry Dániel <daniel.vasary@userrendszerhaz.hu>
Tue, 27 Nov 2018 15:28:15 +0000 (15:28 +0000)
committerVásáry Dániel <daniel.vasary@userrendszerhaz.hu>
Tue, 27 Nov 2018 15:28:15 +0000 (15:28 +0000)
git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube;C31355

client/Maestro/Configuration/configuration.json
client/MaestroShared/Targets/FTPTargetProcessor.cs

index f755d8f760ec6c05ef95242a95e4940396e916ff..325033a449034b4681ca1c41712dfdd4883af9d2 100644 (file)
@@ -52,7 +52,7 @@
       "killDateDays": 7,\r
       "saveArchiveMetadata": false,\r
       "remote": {\r
-        "address": "ftp://10.10.1.100/TESZT/CHECK",\r
+        "address": "ftp://isilon.intra.echotv.hu/TESZT/CHECK",\r
         "userName": "mediacube",\r
         "password": "Dn8t4gfHcK98o8hyPgLDhr5SgSji4JCxsfpMJsODikUp3nXgrM0UNCi45lLAK8ZOnmEneO44P9qpJ4QDqhctN6MxZodjJgdZTyoZKmSa+ECzEzLr/wPYNgxVaXrVotEy",\r
         "timeout": 1000\r
index 4d73b0558e057e242362e90c94cb9bdb44be6a3b..868c472e7b428a7db75dc6fb0895f999804fea91 100644 (file)
@@ -151,8 +151,14 @@ namespace MaestroShared.Targets {
 \r
         protected FtpClient CreateClient(Connection connection) {\r
             Uri address = connection.Address;\r
+            string addr = address.Host;\r
+\r
+            IPHostEntry hostEntry = Dns.GetHostEntry(addr);\r
+            if (hostEntry != null && hostEntry.AddressList.Length > 0)\r
+                addr = hostEntry.AddressList[0].ToString();\r
+\r
             FtpClient result = new FtpClient() {\r
-                Host = address.Host,\r
+                Host = addr,\r
                 Port = address.Port,\r
                 InternetProtocolVersions = FtpIpVersion.IPv4,\r
                 UploadDataType = FtpDataType.Binary,\r