Skip to content

Commit

Permalink
op-signer proxy name parsing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
parkgunou committed Jan 21, 2025
1 parent b38496d commit 96433ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion op-signer/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package service
import (
"context"
"fmt"
"net/url"
"strings"

"github.com/ethereum/go-ethereum/common/hexutil"
Expand Down Expand Up @@ -86,7 +87,9 @@ func (s *EthService) SignTransaction(ctx context.Context, args signer.Transactio
if clientInfo := ClientInfoFromContext(ctx); clientInfo.ClientName != "" {
clientName = clientInfo.ClientName
} else if peerInfo := rpc.PeerInfoFromContext(ctx); peerInfo.HTTP.Host != "" {
clientName = peerInfo.HTTP.Host
if u, err := url.Parse(peerInfo.HTTP.Host); err == nil {
clientName = u.Hostname()
}
}

authConfig, err := s.config.GetAuthConfigForClient(clientName, nil)
Expand Down

0 comments on commit 96433ee

Please sign in to comment.