Skip to content

Commit

Permalink
chore: default grpc port
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed Nov 5, 2023
1 parent e641455 commit 17285d5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions uptrace/dsn.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,13 @@ func ParseDSN(dsnStr string) (*DSN, error) {
}

if dsn.GRPCPort == "" {
dsn.GRPCPort = dsn.HTTPPort
if dsn.HTTPPort == "14317" {
dsn.HTTPPort = "14318"
if dsn.HTTPPort != "" {
dsn.GRPCPort = dsn.HTTPPort
if dsn.HTTPPort == "14317" {
dsn.HTTPPort = "14318"
}
} else {
dsn.GRPCPort = "4317"
}
}

Expand Down

0 comments on commit 17285d5

Please sign in to comment.