air icon indicating copy to clipboard operation
air copied to clipboard

Air load on mac, cannot be accessed by others.

Open Lilihx opened this issue 1 year ago • 3 comments

Air load a server on port, eg 8080. Cannot be accessed by others. Instead, using " go run main.go" to start the server, it can be accessed.

I found that, it will pop up a "net work confirm" after "go run main.go" While using air, it didnot happened.

My mac os is 12.4 version.

Lilihx avatar Jul 19 '22 12:07 Lilihx

do you remember the fix for this ?

devashishRaj avatar Aug 30 '23 17:08 devashishRaj

I didnot fix this ...

Lilihx avatar Sep 01 '23 11:09 Lilihx

it probably haas nothing to do with air as if i use "go run main.go" , the program will ask of network permission but not if i use run executable file produced from "go build main.go" , which is default build command in toml file , so i think it's an issue of editing go.mod to include local packages during build. i'll try on weekend to do this.

devashishRaj avatar Sep 01 '23 11:09 devashishRaj