From c079f0dacecc658877d5ad1c7e3449977b29b942 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Tue, 31 Jan 2017 20:10:27 -0800 Subject: [PATCH] add getter for serverHostname so classes based on this can access their address --- standardricochetservice.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/standardricochetservice.go b/standardricochetservice.go index 3c51d3c..71f88b9 100644 --- a/standardricochetservice.go +++ b/standardricochetservice.go @@ -180,3 +180,9 @@ func (srs *StandardRicochetService) OnBadUsageError(oc *OpenConnection, channelI func (srs *StandardRicochetService) OnFailedError(oc *OpenConnection, channelID int32) { oc.RejectOpenChannel(channelID, "FailedError") } + +// Getters + +func (srs *StandardRicochetService) GetServerHostname() string { + return srs.serverHostname +} \ No newline at end of file