Skip to content

Commit

Permalink
feat: auto-enable Satellite TLS on port 443 and 8443
Browse files Browse the repository at this point in the history
  • Loading branch information
isometry committed Mar 31, 2024
1 parent 5888b13 commit 8f290a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/provider/satellite/satellite.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ func (i *Satellite) GetHealth(ctx context.Context) *ph.HealthCheckResponse {
ctx, cancel := context.WithTimeout(ctx, i.Timeout)
defer cancel()

if i.Port == 443 || i.Port == 8443 {
i.TLS = true
}

dialOptions := []grpc.DialOption{}
if i.TLS {
tlsConf := &tls.Config{
Expand Down

0 comments on commit 8f290a0

Please sign in to comment.