Use address of ssh daemon when creating a tunnel 17/180917/9
authorAleksander Mistewicz <a.mistewicz@samsung.com>
Mon, 4 Jun 2018 08:10:56 +0000 (10:10 +0200)
committerAleksander Mistewicz <a.mistewicz@samsung.com>
Fri, 3 Aug 2018 11:36:41 +0000 (13:36 +0200)
commit5fa76614610cf135171ed329f42ed173352af1e3
treea0dad013cf40ae953fffa60e6006c447df52e3a0
parent1a9e53461bbde08e3c2235d07c2c89d8731d16a7
Use address of ssh daemon when creating a tunnel

Change-Id: Ie66daa17104be1ea06849eccaaee78b2b4353c2e
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
Use net.TCPAddr instead of net.IP as it contains Port field.

Some methods were renamed to reflect migration from net.IP to
net.TCPAddr. It allows multiple dryads to coexist behind NAT or on
a single host. Currently, it is possible to provide network addresses to
non-existent address or to a different dryad than expected. Addresses in
Register() call are checked only for resolvability.

Change-Id: I46cecb8ad6f06fabb88f2262d95c0678329915ab
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
17 files changed:
matcher/jobs.go
matcher/jobs_test.go
matcher/tunneler_mock_test.go
matcher/workersmanager.go
matcher/workersmanager_mock_test.go
requests/requests_requestsmanager_test.go
requests/workersmanager_mock_test.go
rpc/dryad/clientmanager.go
rpc/dryad/tcpdial.go
rpc/superviser/reception_test.go
tunnels/tunneler.go
tunnels/tunnels.go
tunnels/tunnels_test.go
workers/dryadclientmanager_mock_test.go
workers/error.go
workers/worker_list_test.go
workers/workers.go