fix бага с настройками почты
This commit is contained in:
@@ -28,8 +28,8 @@ public abstract class RepositoryServerSSHPass extends ConnectionPass {
|
||||
userHome = null;
|
||||
serverHome = null;
|
||||
//--
|
||||
machine = new Machine("alex", Global.normalProperties.ServerAddress, Global.normalProperties.ServerUserSHHPort, MachineType.Server);
|
||||
user = new User(Global.normalProperties.ServerUserName, "mprit_2011");
|
||||
machine = new Machine("alex", Constants.ServerAddress, Constants.ServerUserSHHPort, MachineType.Server);
|
||||
user = new User(Constants.ServerUserName, "mprit_2011");
|
||||
super.Connect();
|
||||
//--
|
||||
userHome = new RemoteFile(user.connection.sftpChannel.getHome(), true);
|
||||
|
||||
@@ -4,6 +4,7 @@ import Common.Database.RepositoryRefuseException;
|
||||
import Common.Passes.Pass;
|
||||
import Common.Passes.PassException;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Constants;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Repository.RepositoryServer;
|
||||
import _VisualDVM.Repository.Server.ServerCode;
|
||||
@@ -37,7 +38,7 @@ public abstract class RepositoryPass<S extends RepositoryServer, T> extends Pass
|
||||
}
|
||||
//-
|
||||
protected void connect() throws Exception {
|
||||
clientSocket = Utils.createClientSocket(InetAddress.getByName(Global.properties.ServerAddress),
|
||||
clientSocket = Utils.createClientSocket(InetAddress.getByName(Constants.ServerAddress),
|
||||
server.getPort(),
|
||||
getTimeout()
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user