Changeset 353 in code for trunk/upstream.go


Ignore:
Timestamp:
Jul 6, 2020, 3:31:11 PM (5 years ago)
Author:
contact
Message:

Add support for upstream Unix socket connections

References: https://todo.sr.ht/~emersion/soju/51

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/upstream.go

    r352 r353  
    142142                if err != nil {
    143143                        return nil, fmt.Errorf("failed to dial %q: %v", addr, err)
     144                }
     145        case "unix":
     146                logger.Printf("connecting to Unix socket at path %q", u.Path)
     147                netConn, err = dialer.Dial("unix", u.Path)
     148                if err != nil {
     149                        return nil, fmt.Errorf("failed to connect to Unix socket %q: %v", u.Path, err)
    144150                }
    145151        default:
Note: See TracChangeset for help on using the changeset viewer.