sftp settings premakjen
This commit is contained in:
@@ -49,6 +49,11 @@ namespace InfosysPublisher
|
||||
private string _selectedProjectVersion = "";
|
||||
private string _selectedProjectGuid = "";
|
||||
|
||||
private static readonly string SftpServerAddress = "192.168.111.75";
|
||||
private static readonly int SftpPort = 300;
|
||||
private static readonly string SftpUsername = "InfosysUpdate";
|
||||
private static readonly string SftpPassword = "v&H6c$wTbTkgSgdWvL*8k$st3#z5X";
|
||||
|
||||
private const string SftpArchivePath = "Archive";
|
||||
public WinMain()
|
||||
{
|
||||
@@ -341,8 +346,7 @@ namespace InfosysPublisher
|
||||
{
|
||||
try
|
||||
{
|
||||
using var sftpClient = new SftpClient(App._application.SftpServerAddress, App._application.SftpPort,
|
||||
App._application.SftpUsername, App._application.SftpPassword);
|
||||
using var sftpClient = new SftpClient(SftpServerAddress, SftpPort, SftpUsername, SftpPassword);
|
||||
sftpClient.Connect();
|
||||
|
||||
if (!sftpClient.Exists(_selectedProjectPublishLocation))
|
||||
|
||||
Reference in New Issue
Block a user