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

Ending api session #118

Open
bl4ko opened this issue Apr 12, 2024 · 0 comments
Open

Ending api session #118

bl4ko opened this issue Apr 12, 2024 · 0 comments

Comments

@bl4ko
Copy link

bl4ko commented Apr 12, 2024

When running the following code:

package main

import (
    "log"
    "github.com/PaloAltoNetworks/pango"
)

func main() {
    var err error

    c := &pango.Firewall{Client: pango.Client{
        Hostname: "127.0.0.1",
        Username: "svcnetbox",
        Password: "password",
        Logging: pango.LogAction | pango.LogOp,
    }}
    if err = c.Initialize(); err != nil {
        log.Printf("Failed to initialize client: %s", err)
        return
    }
    log.Printf("Initialize ok")
}

I see that when the program ends, the session is not automatically terminated and is in idle state:

image

I can't find a way to terminate the session via sdk, am I missing something?

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

No branches or pull requests

1 participant