Skip to content

Commit

Permalink
fix: build directives
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyWie authored and mattn committed May 22, 2024
1 parent ecb22d3 commit 8fd8dc5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pac_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//go:build !windows && (!darwin || !cgo)
// +build !windows,!darwin !cgo
// +build !windows
// +build !darwin !cgo

package ieproxy

Expand Down
3 changes: 3 additions & 0 deletions proxy_middleman_darwin.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build !ios && !iossimulator
// +build !ios,!iossimulator

package ieproxy

import (
Expand Down
14 changes: 14 additions & 0 deletions proxy_middleman_ios.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//go:build ios || iossimulator
// +build ios iossimulator

package ieproxy

import (
"net/http"
"net/url"
)

func proxyMiddleman() func(req *http.Request) (i *url.URL, e error) {
// Fallthrough to ProxyFromEnvironment on all other OSes.
return http.ProxyFromEnvironment
}

0 comments on commit 8fd8dc5

Please sign in to comment.