Ticket #9006: 0001-Bypass-facilitator-when-given-client-and-relay.patch

File 0001-Bypass-facilitator-when-given-client-and-relay.patch, 875 bytes (added by arlolra, 6 years ago)
  • proxy/flashproxy.js

    From 40c575190741d030451464382714c6e1f521d6ef Mon Sep 17 00:00:00 2001
    From: Arlo Breault <arlolra@gmail.com>
    Date: Fri, 31 May 2013 12:25:21 -0700
    Subject: [PATCH] Bypass facilitator when given "client" and "relay"
    
    Proxy should not contact facilitator if given "relay" and "client"
    parameters.
    
    Fixes #9006
    ---
     proxy/flashproxy.js | 1 +
     1 file changed, 1 insertion(+)
    
    diff --git a/proxy/flashproxy.js b/proxy/flashproxy.js
    index 48e2625..7bf3017 100644
    a b function FlashProxy() { 
    518518        }
    519519        if (client_addr !== undefined && relay_addr !== undefined) {
    520520            this.begin_proxy(client_addr, relay_addr);
     521            return;
    521522        } else if (client_addr !== undefined) {
    522523            puts("Error: the \"client\" parameter requires \"relay\" also.")
    523524            this.die();