Skip to content

Commit

Permalink
Make DNS record dialled proxy connections read-only
Browse files Browse the repository at this point in the history
  • Loading branch information
richtr committed Feb 20, 2015
1 parent ec730fe commit 8f0090c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (channel *Channel) ServeProxy(w http.ResponseWriter, r *http.Request) {
}

// Create, bind and start a new proxy connection
proxy := NewProxy(ws, false)
proxy := NewProxy(ws, true)
proxy.Start(channel)
}

Expand Down
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func dialProxyFromDNSRecord(record *DNSRecord, channel *Channel) error {
log.Printf("Established proxy named web socket connection to wss://%s%s", remoteWSUrl.Host, remoteWSUrl.Path)

// Create, bind and start a new proxy connection
proxyConn := NewProxy(ws, true)
proxyConn := NewProxy(ws, false)
proxyConn.setHash_Base64(record.Hash_Base64)
proxyConn.Start(channel)

Expand Down

0 comments on commit 8f0090c

Please sign in to comment.