* I2PTunnel & I2CP:
- Fix tunnel reduction/restore, hook in the GUI - Hook leaseset encryption into the GUI - Implement saves for all the new stuff - Add cancel button - Add b32 display for non-http servers - Prep for CONNECT - Fix error msg when connection goes away
This commit is contained in:
@ -237,22 +237,20 @@ public class TunnelPoolManager implements TunnelManagerFacade {
|
||||
return null;
|
||||
}
|
||||
public void setInboundSettings(Hash client, TunnelPoolSettings settings) {
|
||||
|
||||
TunnelPool pool = null;
|
||||
synchronized (_clientInboundPools) {
|
||||
pool = (TunnelPool)_clientInboundPools.get(client);
|
||||
}
|
||||
if (pool != null)
|
||||
pool.setSettings(settings);
|
||||
setSettings(_clientInboundPools, client, settings);
|
||||
}
|
||||
public void setOutboundSettings(Hash client, TunnelPoolSettings settings) {
|
||||
|
||||
setSettings(_clientOutboundPools, client, settings);
|
||||
}
|
||||
private void setSettings(Map pools, Hash client, TunnelPoolSettings settings) {
|
||||
TunnelPool pool = null;
|
||||
synchronized (_clientOutboundPools) {
|
||||
pool = (TunnelPool)_clientOutboundPools.get(client);
|
||||
synchronized (pools) {
|
||||
pool = (TunnelPool)pools.get(client);
|
||||
}
|
||||
if (pool != null)
|
||||
if (pool != null) {
|
||||
settings.setDestination(client); // prevent spoofing or unset dest
|
||||
pool.setSettings(settings);
|
||||
}
|
||||
}
|
||||
|
||||
public void restart() {
|
||||
|
Reference in New Issue
Block a user