Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: 'myIpAddressEx' is not defined error while trying to find proxy entry #3

Open
SureshdKumar opened this issue Aug 29, 2019 · 0 comments

Comments

@SureshdKumar
Copy link

Hi,

I am using GoPac package to parse and find proxy from PAC file.
I have followed the example and able to parse the auto config URL using parse.ParseURL() however while trying to find the proxy entry, getting below error.

Sample Code:

            parser := new(gopac.Parser)
	if err := parser.ParseUrl(autoConfigURL); err != nil {
		log.Fatalf("Failed to parse PAC (%s)", err)
	}

	// find the proxy entry for host check.immun.es
	entry, err := parser.FindProxy("", "proxyconf")

	if err != nil {
		log.Fatalf("Failed to find proxy entry (%s)", err)
	}

Error: 2019/08/29 08:56:51 Failed to find proxy entry (ReferenceError: 'myIpAddressEx' is not defined)

I am running the above code directly in main().
I tried replacing myIpAddressEX() with myIpAddress for IPv4 still same issue.

Any assistance is greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant