Merge pull request #1948 from shlevy/no-forward
ssh-ng: Don't forward options to the daemon.
This commit is contained in:
		
						commit
						70dbac7491
					
				
					 2 changed files with 12 additions and 1 deletions
				
			
		| 
						 | 
					@ -122,11 +122,12 @@ protected:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ref<Pool<Connection>> connections;
 | 
					    ref<Pool<Connection>> connections;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    virtual void setOptions(Connection & conn);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
private:
 | 
					private:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    std::atomic_bool failed{false};
 | 
					    std::atomic_bool failed{false};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    void setOptions(Connection & conn);
 | 
					 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class UDSRemoteStore : public LocalFSStore, public RemoteStore
 | 
					class UDSRemoteStore : public LocalFSStore, public RemoteStore
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -51,6 +51,16 @@ private:
 | 
				
			||||||
    std::string host;
 | 
					    std::string host;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    SSHMaster master;
 | 
					    SSHMaster master;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    void setOptions(RemoteStore::Connection & conn) override
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        /* TODO Add a way to explicitly ask for some options to be
 | 
				
			||||||
 | 
					           forwarded. One option: A way to query the daemon for its
 | 
				
			||||||
 | 
					           settings, and then a series of params to SSHStore like
 | 
				
			||||||
 | 
					           forward-cores or forward-overridden-cores that only
 | 
				
			||||||
 | 
					           override the requested settings.
 | 
				
			||||||
 | 
					        */
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue