mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-15 19:31:06 +01:00
Typo fix
This commit is contained in:
parent
ecb6f0831e
commit
57f8c620c0
@ -19,7 +19,7 @@ type Relay struct {
|
|||||||
validator auth.Validator
|
validator auth.Validator
|
||||||
|
|
||||||
store *Store
|
store *Store
|
||||||
instaceURL string
|
instanceURL string
|
||||||
|
|
||||||
closed bool
|
closed bool
|
||||||
closeMu sync.RWMutex
|
closeMu sync.RWMutex
|
||||||
@ -38,9 +38,9 @@ func NewRelay(meter metric.Meter, exposedAddress string, tlsSupport bool, valida
|
|||||||
}
|
}
|
||||||
|
|
||||||
if tlsSupport {
|
if tlsSupport {
|
||||||
r.instaceURL = fmt.Sprintf("rels://%s", exposedAddress)
|
r.instanceURL = fmt.Sprintf("rels://%s", exposedAddress)
|
||||||
} else {
|
} else {
|
||||||
r.instaceURL = fmt.Sprintf("rel://%s", exposedAddress)
|
r.instanceURL = fmt.Sprintf("rel://%s", exposedAddress)
|
||||||
}
|
}
|
||||||
|
|
||||||
return r, nil
|
return r, nil
|
||||||
@ -120,7 +120,7 @@ func (r *Relay) handShake(conn net.Conn) ([]byte, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
msg, _ := messages.MarshalHelloResponse(r.instaceURL)
|
msg, _ := messages.MarshalHelloResponse(r.instanceURL)
|
||||||
_, err = conn.Write(msg)
|
_, err = conn.Write(msg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@ -129,5 +129,5 @@ func (r *Relay) handShake(conn net.Conn) ([]byte, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (r *Relay) InstanceURL() string {
|
func (r *Relay) InstanceURL() string {
|
||||||
return r.instaceURL
|
return r.instanceURL
|
||||||
}
|
}
|
||||||
|
@ -91,5 +91,5 @@ func (r *Server) Close() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (r *Server) InstanceURL() string {
|
func (r *Server) InstanceURL() string {
|
||||||
return r.relay.instaceURL
|
return r.relay.instanceURL
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user