use new SessionConfig constructor

This commit is contained in:
jrandom
2004-06-19 23:46:08 +00:00
committed by zzz
parent 1679ba6719
commit cc904ba9dc

View File

@ -53,8 +53,7 @@ class I2CPMessageProducer {
*/ */
public void connect(I2PSessionImpl session) throws I2PSessionException { public void connect(I2PSessionImpl session) throws I2PSessionException {
CreateSessionMessage msg = new CreateSessionMessage(); CreateSessionMessage msg = new CreateSessionMessage();
SessionConfig cfg = new SessionConfig(); SessionConfig cfg = new SessionConfig(session.getMyDestination());
cfg.setDestination(session.getMyDestination());
cfg.setOptions(session.getOptions()); cfg.setOptions(session.getOptions());
try { try {
cfg.signSessionConfig(session.getPrivateKey()); cfg.signSessionConfig(session.getPrivateKey());