Skip to content

πŸ› Bug: Missing sub declarations in ServerCheck.pmΒ #98

@hawkeye4iot

Description

@hawkeye4iot

CSF β€Ί Version

v15.10

CSF β€Ί Release

Stable

System β€Ί OS

Linux

System β€Ί Distro & Version

Ubuntu 24.04

Control Panel β€Ί Name

Generic (None)

Priority

High

Issue Description

File: src/ConfigServer/ServerCheck.pm
CSF Version: v15.10
Severity: Critical : CSF cannot start at all (csf -ra, csf -v, etc. all fail)

Error

Unmatched right curly bracket at /usr/local/csf/lib/ConfigServer/ServerCheck.pm line 194, at end of line
syntax error at /usr/local/csf/lib/ConfigServer/ServerCheck.pm line 194, near "}"
Compilation failed in require at /usr/sbin/csf line 43.

Root Cause

Two subroutine declarations (sub report and sub servercheck) are missing from the file. The function bodies are present, but the sub name { opening lines were accidentally removed , likely during a refactor or merge.

Steps To Reproduce

Try a fresh install on Ubuntu 24.04 Lts

  1. git clone https://github.com/Aetherinox/csf-firewall.git
  2. cd csf-firewall/src
  3. sudo bash install.sh

Logs β€Ί Lfd

No response

Config β€Ί csf.conf

No response

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions