diff --git a/connectClient/main.go b/connectClient/main.go index 019f32eb900385facec1bc69552b27f214226417..0b1e74f16bbdb6125574f929574e394860a3ddbf 100644 --- a/connectClient/main.go +++ b/connectClient/main.go @@ -24,7 +24,7 @@ func main() { // Create a new client object------------------------------------------------------- // Path to the server contact file - serverContactPath := "server-contact.json" + serverContactPath := "connectServer.xxc" // You would ideally use a configuration tool to acquire these parameters statePath := "statePath" diff --git a/connectServer/main.go b/connectServer/main.go index 7a29d85f5c4246f8084983f557436da13150357f..0d8cc28cd5d6f77846502ffc8b3455d5827fd398 100644 --- a/connectServer/main.go +++ b/connectServer/main.go @@ -20,6 +20,9 @@ func main() { // Create a new client object------------------------------------------------------- + // Set the output contact file path + contactFilePath := "connectServer.xxc" + // You would ideally use a configuration tool to acquire these parameters statePath := "statePath" statePass := "password" @@ -94,9 +97,6 @@ func main() { // Save contact file---------------------------------------------------------------- - // Get the contact file path - contactFilePath := "connectServer.xxc" - // Save the contact file so that client can connect to this server writeContact(contactFilePath, identity.GetContact())