zhanghai / zhanghai/MaterialFiles

[功能请求] FTP服务器使用root权限监听21端口

Open
#1,145 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
9k
Forks
736
PR merge metrics
No merged PRs in 30d

Description

安卓上1024以下的系统保留端口需要root权限才能监听,质感文件中如果把FTP服务器的端口设为系统保留端口会报错

W System.err: org.apache.ftpserver.FtpServerConfigurationException: Failed to bind to address ::/[::]:21, check configuration

能否实现使用root权限监听21端口?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure when MaterialFiles configures the FTP server for port 21, using the reported Apache FtpServerConfigurationException as the entry point. Investigate Android's root requirements for binding reserved ports and determine how root access could be used; done means the FTP server can listen on port 21 on supported rooted devices.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile, networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.