Skip to content

Commit

Permalink
getlantern/lantern#2162 Renamed method to server.checkForNonGlobalDes…
Browse files Browse the repository at this point in the history
…tination
  • Loading branch information
oxtoacart committed Jan 12, 2015
1 parent 436c5dc commit 14a6b74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/github.com/getlantern/fronted/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func (server *Server) Serve(l net.Listener) error {
// in a countingConn if an InstanceId was configured.
func (server *Server) dialDestination(addr string) (net.Conn, error) {
if !server.AllowNonGlobalDestinations {
err := server.checkForLocalAddress(addr)
err := server.checkForNonGlobalDestination(addr)
if err != nil {
log.Error(err.Error())
return nil, err
Expand All @@ -192,7 +192,7 @@ func (server *Server) dialDestination(addr string) (net.Conn, error) {
return net.DialTimeout("tcp", addr, dialTimeout)
}

func (server *Server) checkForLocalAddress(addr string) error {
func (server *Server) checkForNonGlobalDestination(addr string) error {
host, _, err := net.SplitHostPort(addr)
if err != nil {
return fmt.Errorf("Unable to split host and port for %v: %v", addr, err)
Expand Down

0 comments on commit 14a6b74

Please sign in to comment.