Share via


BasicHttpBinding.BypassProxyOnLocal 속성

정의

프록시 서버를 우회하고 로컬 주소를 대신 사용할지 여부를 나타내는 값을 가져오거나 설정합니다.

public:
 property bool BypassProxyOnLocal { bool get(); void set(bool value); };
public bool BypassProxyOnLocal { get; set; }
member this.BypassProxyOnLocal : bool with get, set
Public Property BypassProxyOnLocal As Boolean

속성 값

Boolean

프록시 서버를 우회하고 로컬 주소를 대신 사용하려면 true이고, 그렇지 않으면 false입니다. 기본값은 false입니다.

예제

다음 예제에서는 로컬 리소스에 대해 프록시를 사용하지 않음을 나타내도록 이 속성을 설정합니다.

BasicHttpBinding binding = new BasicHttpBinding();
binding.BypassProxyOnLocal = true;

이 속성의 값은 구성 파일에서 설정할 수도 있습니다.

<configuration>
  <system.serviceModel>

    <bindings>
      <basicHttpBinding>
        <binding name="Binding1" 
                 bypassProxyOnLocal="true">
          <security mode="None" />
        </binding>
      </basicHttpBinding>
    </bindings>
  </system.serviceModel>

</configuration>

설명

주소가 로컬인 인터넷 리소스는 로컬 리소스입니다. 로컬 주소는 동일한 컴퓨터, 로컬 LAN 또는 인트라넷에 있는 주소이며 URI http://webserver/ http://localhost/와 같이 기간(.)이 부족하여 구문적으로 식별됩니다.

BypassProxyOnLocal 속성을 설정하면 로컬 리소스에 액세스할 때 프록시 서버를 사용하도록 구성된 BasicHttpBinding 엔드포인트가 결정됩니다.

BypassProxyOnLocal인 true경우 로컬 인터넷 리소스에 대한 요청은 프록시 서버를 사용하지 않습니다. 이 속성이 localhost로 설정된 경우 클라이언트가 동일한 시스템의 서비스와 통신할 때 프록시를 통하게 하려면 true 대신 호스트 이름을 사용합니다.

BypassProxyOnLocal이면 false비 localhost URI에 대한 모든 인터넷 요청이 프록시 서버를 통해 수행됩니다. localhost를 사용하여 URI에 대한 요청은 BypassProxyOnLocal 설정에 관계없이 프록시 서버를 사용하지 않습니다.

적용 대상