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

getting undefined: core function #340

Open
AbexDeveloper opened this issue May 9, 2024 · 4 comments
Open

getting undefined: core function #340

AbexDeveloper opened this issue May 9, 2024 · 4 comments

Comments

@AbexDeveloper
Copy link

First i try make command then i got this:
PS D:\Users\darklifeons\Downloads\Modlishka-master\Modlishka-master> make
go test -v main.go main_test.go

command-line-arguments [command-line-arguments.test]

.\main.go:75:7: undefined: core.SetServerRuntimeConfig
.\main.go:81:7: undefined: core.RunServer
.\main_test.go:327:7: undefined: core.SetServerRuntimeConfig
.\main_test.go:329:35: undefined: core.ServerRuntimeConfig
.\main_test.go:330:130: undefined: core.ServerRuntimeConfig
.\main_test.go:334:27: undefined: core.ServerRuntimeConfig
.\main_test.go:335:114: undefined: core.ServerRuntimeConfig
.\main_test.go:468:7: undefined: core.SetServerRuntimeConfig
.\main_test.go:470:35: undefined: core.ServerRuntimeConfig
.\main_test.go:471:130: undefined: core.ServerRuntimeConfig
.\main_test.go:471:130: too many errors
FAIL command-line-arguments [build failed]
FAIL
Makefile:23: recipe for target 'test' failed
make: *** [test] Error 1

Also try to make build with this

PS D:\Users\darklifeons\Downloads\Modlishka-master\Modlishka-master> go build

github.com/drk1wi/Modlishka

.\main.go:75:7: undefined: core.SetServerRuntimeConfig
.\main.go:81:7: undefined: core.RunServer

@drk1wi
Copy link
Owner

drk1wi commented May 9, 2024

works well on my side:

go version go1.22.1
Zrzut ekranu 2024-05-9 o 12 54 08

@AbexDeveloper
Copy link
Author

PS D:\Users\darklifeons\Downloads\Modlishka-master\Modlishka-master> go version
go version go1.22.3 windows/amd64
PS D:\Users\darklifeons\Downloads\Modlishka-master\Modlishka-master> go test -v main.go main_test.go

command-line-arguments [command-line-arguments.test]

.\main.go:75:7: undefined: core.SetServerRuntimeConfig
.\main.go:81:7: undefined: core.RunServer
.\main_test.go:327:7: undefined: core.SetServerRuntimeConfig
.\main_test.go:329:35: undefined: core.ServerRuntimeConfig
.\main_test.go:330:130: undefined: core.ServerRuntimeConfig
.\main_test.go:334:27: undefined: core.ServerRuntimeConfig
.\main_test.go:335:114: undefined: core.ServerRuntimeConfig
.\main_test.go:468:7: undefined: core.SetServerRuntimeConfig
.\main_test.go:470:35: undefined: core.ServerRuntimeConfig
.\main_test.go:471:130: undefined: core.ServerRuntimeConfig
.\main_test.go:471:130: too many errors
FAIL command-line-arguments [build failed]
FAIL
Still getting this

@drk1wi
Copy link
Owner

drk1wi commented May 9, 2024

not sure, something is wrong with your env. checked also on Kali:

Zrzut ekranu 2024-05-9 o 13 57 45

@rynfua1974
Copy link

Hello I got error creating certificate: x509: serial number must be positive when I execute ./proxy --config ..template/xxxx.json. what type of configuration have I have to do for self-signed certificate ?

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

3 participants