Repository navigation
Conversation
Printers added from the device page get "http://" prepended to print_host. The Flashforge host uses a plain TCP console on port 8899 and passed print_host straight to the resolver, which fails with "No such host is known", so testing and uploading never worked. Only pass the host part to TCPConsole. Fixes CrealityOfficial#667
sellauth
force-pushed
the
fix/flashforge-host-url
branch
from
November 24, 2026 22:23
7f6a9c7 to
6808181
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #667
Printers added from the device page are saved with an
http://prefix inprint_host. The Flashforge host talks plain TCP on port 8899 and passed that string toTCPConsole, so the resolver always failed with "No such host is known" and Test showed "The operation completed successfully".This strips the scheme and any path in the
Flashforgeconstructor, sotest()andupload()both connect to the bare host. Printers that were already saved with the prefix work as well. Other host types aren't touched.Screenshots/Recordings/Graphs
N/A
Tests
I couldn't build the whole app (the prebuilt deps in
extract_deps.batare on an internal server), so I built the unmodifiedTCPConsole.cppagainst Boost 1.84 with MSVC 2022 (Boost.Log stubbed out) together with the newget_console_host(), and ran it against an Adventurer 5M Pro (fw v5.1.7) on my network:http://192.168.100.138,run_queue()fails with the sameresolve: No such host is knownlog line and "The operation completed successfully" message as the app.get_console_host()the host is192.168.100.138and~M601 S1returns ok. The upload handshake (~M601 S1,~M640,~M119) goes through too./W4 /WX /permissive-.Not tested: an actual file upload (the printer was mid-print), and Linux/macOS builds.