server: add log-path and address configuration

- LogPath can be configured through config
- node,rpc and monitoring address can be configured thought command line
or config
This commit is contained in:
Vsevolod Brekelov 2019-11-05 15:22:07 +03:00
parent 1c08753915
commit 11ce73af28
15 changed files with 99 additions and 13 deletions

View file

@ -14,7 +14,7 @@ func TestSendVersion(t *testing.T) {
s = newTestServer()
p = newLocalPeer(t)
)
s.ListenTCP = 3000
s.Port = 3000
s.UserAgent = "/test/"
p.messageHandler = func(t *testing.T, msg *Message) {